619d6dcc77
GitOrigin-RevId: 870959c7fb3a42af1863bed9e1756086a74eb649
42 lines
857 B
Nix
42 lines
857 B
Nix
{ lib
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, buildPythonPackage
|
|
, pip
|
|
, pytest
|
|
, pytest-xdist
|
|
, click
|
|
, setuptools-scm
|
|
, git
|
|
, glibcLocales
|
|
, mock
|
|
, pep517
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pip-tools";
|
|
version = "6.2.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "9ed38c73da4993e531694ea151f77048b4dbf2ba7b94c4a569daa39568cc6564";
|
|
};
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
checkInputs = [ pytest git glibcLocales mock pytest-xdist ];
|
|
propagatedBuildInputs = [ pip click setuptools-scm pep517 ];
|
|
|
|
checkPhase = ''
|
|
export HOME=$(mktemp -d) VIRTUAL_ENV=1
|
|
py.test -m "not network"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Keeps your pinned dependencies fresh";
|
|
homepage = "https://github.com/jazzband/pip-tools/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
};
|
|
}
|