nixpkgs/pkgs/development/tools/build-managers/conan/default.nix

92 lines
2.5 KiB
Nix
Raw Normal View History

{ lib, python3, git, pkgconfig }:
2018-03-15 11:41:11 +00:00
2018-07-24 07:38:55 +00:00
let newPython = python3.override {
2018-03-15 11:41:11 +00:00
packageOverrides = self: super: {
distro = super.distro.overridePythonAttrs (oldAttrs: rec {
2019-01-16 12:23:10 +00:00
version = "1.1.0";
2018-03-15 11:41:11 +00:00
src = oldAttrs.src.override {
inherit version;
sha256 = "1vn1db2akw98ybnpns92qi11v94hydwp130s8753k6ikby95883j";
};
});
node-semver = super.node-semver.overridePythonAttrs (oldAttrs: rec {
2019-01-09 13:29:56 +00:00
version = "0.6.1";
2018-03-15 11:41:11 +00:00
src = oldAttrs.src.override {
inherit version;
2019-01-09 13:29:56 +00:00
sha256 = "1dv6mjsm67l1razcgmq66riqmsb36wns17mnipqr610v0z0zf5j0";
2018-03-15 11:41:11 +00:00
};
});
2019-01-09 13:29:56 +00:00
future = super.future.overridePythonAttrs (oldAttrs: rec {
version = "0.16.0";
2018-07-24 07:38:55 +00:00
src = oldAttrs.src.override {
inherit version;
2019-01-09 13:29:56 +00:00
sha256 = "1nzy1k4m9966sikp0qka7lirh8sqrsyainyf8rk97db7nwdfv773";
2018-07-24 07:38:55 +00:00
};
});
2019-01-09 13:29:56 +00:00
tqdm = super.tqdm.overridePythonAttrs (oldAttrs: rec {
version = "4.28.1";
2018-07-24 07:38:55 +00:00
src = oldAttrs.src.override {
inherit version;
2019-01-09 13:29:56 +00:00
sha256 = "1fyybgbmlr8ms32j7h76hz5g9xc6nf0644mwhc40a0s5k14makav";
2018-07-24 07:38:55 +00:00
};
});
pluginbase = super.pluginbase.overridePythonAttrs (oldAttrs: rec {
version = "0.7";
src = oldAttrs.src.override {
inherit version;
sha256 = "c0abe3218b86533cca287e7057a37481883c07acef7814b70583406938214cc8";
};
});
2018-03-15 11:41:11 +00:00
};
};
in newPython.pkgs.buildPythonApplication rec {
version = "1.12.3";
2017-04-12 23:40:33 +00:00
pname = "conan";
2018-03-15 11:41:11 +00:00
src = newPython.pkgs.fetchPypi {
2017-04-12 23:40:33 +00:00
inherit pname version;
sha256 = "1cnfy9b57apps4bfai6r67g0mrvgnqa154z9idv0kf93k1nvx53g";
2018-07-24 07:38:55 +00:00
};
propagatedBuildInputs = with newPython.pkgs; [
colorama deprecation distro fasteners bottle
future node-semver patch pygments pluginbase
pyjwt pylint pyyaml requests six tqdm
];
2018-07-24 07:38:55 +00:00
checkInputs = [
pkgconfig
2018-07-24 07:38:55 +00:00
git
] ++ (with newPython.pkgs; [
2019-01-09 13:29:56 +00:00
codecov
mock
pytest
2019-01-09 13:29:56 +00:00
node-semver
2018-03-15 11:41:11 +00:00
nose
parameterized
webtest
2018-07-24 07:38:55 +00:00
]);
2018-03-15 11:41:11 +00:00
2018-07-24 07:38:55 +00:00
checkPhase = ''
export HOME=$TMPDIR
pytest conans/test/{utils,unittests} \
-k 'not SVN and not ToolsNetTest'
2018-03-15 11:41:11 +00:00
'';
2017-04-12 23:40:33 +00:00
postPatch = ''
substituteInPlace conans/requirements_server.txt \
--replace "pluginbase>=0.5, < 1.0" "pluginbase>=0.5"
substituteInPlace conans/requirements.txt \
--replace "PyYAML>=3.11, <3.14.0" "PyYAML"
'';
2017-11-13 19:08:07 +00:00
meta = with lib; {
2017-04-12 23:40:33 +00:00
homepage = https://conan.io;
description = "Decentralized and portable C/C++ package manager";
license = licenses.mit;
2019-01-09 13:29:56 +00:00
maintainers = with maintainers; [ HaoZeke ];
2017-04-12 23:40:33 +00:00
platforms = platforms.linux;
};
}