nixpkgs/pkgs/development/python-modules/pip-tools/default.nix

28 lines
849 B
Nix
Raw Normal View History

2017-06-25 17:55:07 +01:00
{ stdenv, fetchurl, buildPythonPackage, pip, pytest, click, six, first, setuptools_scm, glibcLocales }:
2017-03-12 18:10:19 +00:00
buildPythonPackage rec {
pname = "pip-tools";
version = "1.9.0";
2017-03-12 18:10:19 +00:00
name = "pip-tools-${version}";
2017-06-25 17:55:07 +01:00
src = fetchurl {
url = "mirror://pypi/p/pip-tools/${name}.tar.gz";
sha256 = "0mjdpq2zjn8n4lzn9l2myh4bv0l2f6751k1rdpgdm8k3fargw1h7";
2017-03-12 18:10:19 +00:00
};
LC_ALL = "en_US.UTF-8";
buildInputs = [ pytest glibcLocales ];
2017-06-25 17:55:07 +01:00
propagatedBuildInputs = [ pip click six first setuptools_scm ];
2017-03-12 18:10:19 +00: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 ];
};
}