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

62 lines
1.5 KiB
Nix
Raw Normal View History

{ 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 {
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;
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; [
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;
};
}