2017-10-25 20:04:35 +02:00
|
|
|
{ stdenv, fetchurl, buildPythonPackage, pip, pytest, click, six, first
|
2017-10-31 22:23:58 +01:00
|
|
|
, setuptools_scm, git, glibcLocales, mock }:
|
2017-10-25 20:04:35 +02:00
|
|
|
|
2017-03-12 19:10:19 +01:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pip-tools";
|
2017-10-25 20:04:35 +02:00
|
|
|
version = "1.10.1";
|
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";
|
2017-10-25 20:04:35 +02:00
|
|
|
sha256 = "37b85d69ceed97337aeefb3e52e41fe0884a505c874757a5bbaa58d92b533ce0";
|
2017-03-12 19:10:19 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
2017-10-31 22:23:58 +01:00
|
|
|
checkInputs = [ pytest git glibcLocales mock ];
|
2017-06-25 18:55:07 +02:00
|
|
|
propagatedBuildInputs = [ pip click six first setuptools_scm ];
|
2017-03-12 19:10:19 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
2017-10-31 22:23:58 +01:00
|
|
|
export HOME=$(mktemp -d) VIRTUAL_ENV=1
|
|
|
|
tests_without_network_access="
|
|
|
|
not test_realistic_complex_sub_dependencies \
|
|
|
|
and not test_editable_package_vcs \
|
|
|
|
and not test_generate_hashes_all_platforms \
|
|
|
|
and not test_generate_hashes_without_interfering_with_each_other \
|
|
|
|
"
|
|
|
|
py.test -k "$tests_without_network_access"
|
2017-03-12 19:10:19 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Keeps your pinned dependencies fresh";
|
|
|
|
homepage = https://github.com/jazzband/pip-tools/;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
|
|
};
|
|
|
|
}
|