2018-07-21 02:44:44 +02:00
|
|
|
{ lib, python }:
|
2018-03-15 12:41:11 +01:00
|
|
|
|
|
|
|
let newPython = python.override {
|
|
|
|
packageOverrides = self: super: {
|
|
|
|
distro = super.distro.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "1.1.0";
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "1vn1db2akw98ybnpns92qi11v94hydwp130s8753k6ikby95883j";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
node-semver = super.node-semver.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "0.2.0";
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "1080pdxrvnkr8i7b7bk0dfx6cwrkkzzfaranl7207q6rdybzqay3";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in newPython.pkgs.buildPythonApplication rec {
|
2018-07-11 18:34:17 +02:00
|
|
|
version = "1.5.2";
|
2017-04-13 01:40:33 +02:00
|
|
|
pname = "conan";
|
|
|
|
|
2018-03-15 12:41:11 +01:00
|
|
|
src = newPython.pkgs.fetchPypi {
|
2017-04-13 01:40:33 +02:00
|
|
|
inherit pname version;
|
2018-07-11 18:34:17 +02:00
|
|
|
sha256 = "0r5ymq27j60py1fb396zshq7z6adda34a857lwrj3k8hqhs0ihpp";
|
2017-04-13 01:40:33 +02:00
|
|
|
};
|
|
|
|
|
2018-06-22 12:58:10 +02:00
|
|
|
postPatch = ''
|
|
|
|
# Remove pylint constraint
|
|
|
|
substituteInPlace conans/requirements.txt --replace ", <1.9.0" ""
|
|
|
|
'';
|
|
|
|
|
2018-03-15 12:41:11 +01:00
|
|
|
checkInputs = with newPython.pkgs; [
|
|
|
|
nose
|
|
|
|
parameterized
|
|
|
|
mock
|
|
|
|
webtest
|
|
|
|
codecov
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with newPython.pkgs; [
|
2017-05-07 12:55:45 +02:00
|
|
|
requests fasteners pyyaml pyjwt colorama patch
|
2018-03-15 12:41:11 +01:00
|
|
|
bottle pluginbase six distro pylint node-semver
|
2018-04-11 12:23:06 +02:00
|
|
|
future pygments mccabe deprecation
|
2018-03-15 12:41:11 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME="$TMP/conan-home"
|
|
|
|
mkdir -p "$HOME"
|
|
|
|
'';
|
2017-04-13 01:40:33 +02:00
|
|
|
|
2017-11-13 20:08:07 +01:00
|
|
|
meta = with lib; {
|
2017-04-13 01:40:33 +02:00
|
|
|
homepage = https://conan.io;
|
|
|
|
description = "Decentralized and portable C/C++ package manager";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|