2019-11-18 16:37:24 +00:00
|
|
|
{ lib, python3, git, pkgconfig }:
|
2018-03-15 11:41:11 +00:00
|
|
|
|
2018-07-24 08:38:55 +01: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 08:38:55 +01:00
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
2019-01-09 13:29:56 +00:00
|
|
|
sha256 = "1nzy1k4m9966sikp0qka7lirh8sqrsyainyf8rk97db7nwdfv773";
|
2018-07-24 08:38:55 +01:00
|
|
|
};
|
|
|
|
});
|
2019-01-09 13:29:56 +00:00
|
|
|
tqdm = super.tqdm.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "4.28.1";
|
2018-07-24 08:38:55 +01:00
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
2019-01-09 13:29:56 +00:00
|
|
|
sha256 = "1fyybgbmlr8ms32j7h76hz5g9xc6nf0644mwhc40a0s5k14makav";
|
2018-07-24 08:38:55 +01:00
|
|
|
};
|
|
|
|
});
|
2019-04-03 14:54:19 +01: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 {
|
2019-11-18 16:37:24 +00:00
|
|
|
version = "1.12.3";
|
2017-04-13 00:40:33 +01:00
|
|
|
pname = "conan";
|
|
|
|
|
2018-03-15 11:41:11 +00:00
|
|
|
src = newPython.pkgs.fetchPypi {
|
2017-04-13 00:40:33 +01:00
|
|
|
inherit pname version;
|
2019-11-18 16:37:24 +00:00
|
|
|
sha256 = "1cnfy9b57apps4bfai6r67g0mrvgnqa154z9idv0kf93k1nvx53g";
|
2018-07-24 08:38:55 +01:00
|
|
|
};
|
2019-11-18 16:37:24 +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 08:38:55 +01:00
|
|
|
checkInputs = [
|
2019-11-18 16:37:24 +00:00
|
|
|
pkgconfig
|
2018-07-24 08:38:55 +01:00
|
|
|
git
|
|
|
|
] ++ (with newPython.pkgs; [
|
2019-01-09 13:29:56 +00:00
|
|
|
codecov
|
|
|
|
mock
|
2019-11-18 16:37:24 +00:00
|
|
|
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 08:38:55 +01:00
|
|
|
]);
|
2018-03-15 11:41:11 +00:00
|
|
|
|
2018-07-24 08:38:55 +01:00
|
|
|
checkPhase = ''
|
2019-11-18 16:37:24 +00:00
|
|
|
export HOME=$TMPDIR
|
|
|
|
pytest conans/test/{utils,unittests} \
|
|
|
|
-k 'not SVN and not ToolsNetTest'
|
2018-03-15 11:41:11 +00:00
|
|
|
'';
|
2017-04-13 00:40:33 +01:00
|
|
|
|
2019-03-23 18:18:41 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace conans/requirements_server.txt \
|
|
|
|
--replace "pluginbase>=0.5, < 1.0" "pluginbase>=0.5"
|
2019-11-18 16:37:24 +00:00
|
|
|
substituteInPlace conans/requirements.txt \
|
|
|
|
--replace "PyYAML>=3.11, <3.14.0" "PyYAML"
|
2019-03-23 18:18:41 +00:00
|
|
|
'';
|
|
|
|
|
2017-11-13 19:08:07 +00:00
|
|
|
meta = with lib; {
|
2017-04-13 00:40:33 +01: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-13 00:40:33 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|