2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, pythonPackages }:
|
2017-05-22 18:22:03 +02:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
with pythonPackages;
|
|
|
|
|
|
|
|
let
|
2018-06-21 07:37:19 +02:00
|
|
|
version = "1.7.0";
|
2017-07-17 16:37:52 +02:00
|
|
|
in buildPythonApplication rec {
|
|
|
|
inherit version;
|
|
|
|
pname = "pantsbuild.pants";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-21 07:37:19 +02:00
|
|
|
sha256 = "1d7ff1383287c8e72f2c9855cfef982d362274a64e2707a93c070f988ba80a37";
|
2017-05-22 18:22:03 +02:00
|
|
|
};
|
2017-05-24 01:38:25 +02:00
|
|
|
|
2017-07-17 16:37:52 +02:00
|
|
|
prePatch = ''
|
|
|
|
sed -E -i "s/'([[:alnum:].-]+)[=><][[:digit:]=><.,]*'/'\\1'/g" setup.py
|
2018-09-11 23:22:17 +02:00
|
|
|
substituteInPlace setup.py --replace "requests[security]<2.19,>=2.5.0" "requests[security]<2.20,>=2.5.0"
|
2017-05-24 01:38:25 +02:00
|
|
|
'';
|
|
|
|
|
2017-07-17 16:37:52 +02:00
|
|
|
# Unnecessary, and causes some really weird behavior around .class files, which
|
|
|
|
# this package bundles. See https://github.com/NixOS/nixpkgs/issues/22520.
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2018-03-25 23:12:07 +02:00
|
|
|
twitter-common-collections setproctitle ansicolors packaging pathspec
|
|
|
|
scandir twitter-common-dirutil psutil requests pystache pex docutils
|
|
|
|
markdown pygments twitter-common-confluence fasteners pywatchman
|
2018-05-11 19:07:15 +02:00
|
|
|
futures cffi subprocess32 contextlib2 faulthandler pyopenssl wheel
|
2017-07-17 16:37:52 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A build system for software projects in a variety of languages";
|
2018-01-05 20:42:46 +01:00
|
|
|
homepage = "https://www.pantsbuild.org/";
|
2017-07-17 16:37:52 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ copumpkin ];
|
|
|
|
platforms = platforms.unix;
|
2017-05-22 18:22:03 +02:00
|
|
|
};
|
|
|
|
}
|