2018-07-24 09:38:55 +02:00
|
|
|
{ lib, python3, fetchpatch, git }:
|
2018-03-15 12:41:11 +01:00
|
|
|
|
2018-07-24 09:38:55 +02:00
|
|
|
let newPython = python3.override {
|
2018-03-15 12:41:11 +01:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
});
|
2018-07-24 09:38:55 +02:00
|
|
|
astroid = super.astroid.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "1.6.5";
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "fc9b582dba0366e63540982c3944a9230cbc6f303641c51483fa547dcc22393a";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
pylint = super.pylint.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "1.8.4";
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "34738a82ab33cbd3bb6cd4cef823dbcabdd2b6b48a4e3a3054a2bbbf0c712be9";
|
|
|
|
};
|
|
|
|
|
|
|
|
});
|
2018-03-15 12:41:11 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in newPython.pkgs.buildPythonApplication rec {
|
2018-07-24 09:38:55 +02:00
|
|
|
version = "1.6.0";
|
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-24 09:38:55 +02:00
|
|
|
sha256 = "386476d3af1fa390e4cd96e737876e7d1f1c0bca09519e51fd44c1bb45990caa";
|
2017-04-13 01:40:33 +02:00
|
|
|
};
|
|
|
|
|
2018-07-24 09:38:55 +02:00
|
|
|
# Bump PyYAML to 3.13
|
|
|
|
patches = fetchpatch {
|
|
|
|
url = https://github.com/conan-io/conan/commit/9d3d7a5c6e89b3aa321735557e5ad3397bb80568.patch;
|
|
|
|
sha256 = "1qdy6zj3ypl1bp9872mzaqg1gwigqldxb1glvrkq3p4za62p546k";
|
|
|
|
};
|
2018-06-22 12:58:10 +02:00
|
|
|
|
2018-07-24 09:38:55 +02:00
|
|
|
checkInputs = [
|
|
|
|
git
|
|
|
|
] ++ (with newPython.pkgs; [
|
2018-03-15 12:41:11 +01:00
|
|
|
nose
|
|
|
|
parameterized
|
|
|
|
mock
|
|
|
|
webtest
|
|
|
|
codecov
|
2018-07-24 09:38:55 +02:00
|
|
|
]);
|
2018-03-15 12:41:11 +01:00
|
|
|
|
|
|
|
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
|
|
|
];
|
|
|
|
|
2018-07-24 09:38:55 +02:00
|
|
|
checkPhase = ''
|
2018-03-15 12:41:11 +01:00
|
|
|
export HOME="$TMP/conan-home"
|
|
|
|
mkdir -p "$HOME"
|
2018-07-24 09:38:55 +02:00
|
|
|
nosetests conans.test
|
2018-03-15 12:41:11 +01:00
|
|
|
'';
|
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;
|
|
|
|
};
|
|
|
|
}
|