2017-06-25 18:55:07 +02:00
|
|
|
{ stdenv, fetchurl, buildPythonPackage, pip, pytest, click, six, first, setuptools_scm, glibcLocales }:
|
2017-03-12 19:10:19 +01:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pip-tools";
|
2017-05-27 14:24:47 +02:00
|
|
|
version = "1.9.0";
|
2017-03-12 19:10:19 +01:00
|
|
|
name = "pip-tools-${version}";
|
|
|
|
|
2017-06-25 18:55:07 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/p/pip-tools/${name}.tar.gz";
|
|
|
|
sha256 = "0mjdpq2zjn8n4lzn9l2myh4bv0l2f6751k1rdpgdm8k3fargw1h7";
|
2017-03-12 19:10:19 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
buildInputs = [ pytest glibcLocales ];
|
2017-06-25 18:55:07 +02:00
|
|
|
propagatedBuildInputs = [ pip click six first setuptools_scm ];
|
2017-03-12 19:10:19 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
py.test -k "not test_realistic_complex_sub_dependencies" # requires network
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Keeps your pinned dependencies fresh";
|
|
|
|
homepage = https://github.com/jazzband/pip-tools/;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
|
|
};
|
|
|
|
}
|