2021-05-07 23:13:59 +01:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, buildPythonPackage
|
|
|
|
, pip
|
|
|
|
, pytest
|
|
|
|
, pytest-xdist
|
|
|
|
, click
|
|
|
|
, setuptools-scm
|
|
|
|
, git
|
|
|
|
, glibcLocales
|
|
|
|
, mock
|
|
|
|
, pep517
|
|
|
|
}:
|
2017-10-25 19:04:35 +01:00
|
|
|
|
2017-03-12 18:10:19 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pip-tools";
|
2021-05-07 23:13:59 +01:00
|
|
|
version = "6.1.0";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2017-03-12 18:10:19 +00:00
|
|
|
|
2019-07-01 14:15:33 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-05-07 23:13:59 +01:00
|
|
|
sha256 = "sha256-QAv3finMpIwxq8IQBCkyu1LcwTjvTqTVLF20KaqK5u4=";
|
2017-03-12 18:10:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
2021-05-07 23:13:59 +01:00
|
|
|
checkInputs = [ pytest git glibcLocales mock pytest-xdist ];
|
|
|
|
propagatedBuildInputs = [ pip click setuptools-scm pep517 ];
|
2017-11-13 03:33:59 +00:00
|
|
|
|
2017-03-12 18:10:19 +00:00
|
|
|
checkPhase = ''
|
2017-10-31 21:23:58 +00:00
|
|
|
export HOME=$(mktemp -d) VIRTUAL_ENV=1
|
2021-05-07 23:13:59 +01:00
|
|
|
py.test -m "not network"
|
2017-03-12 18:10:19 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-03-12 18:10:19 +00:00
|
|
|
description = "Keeps your pinned dependencies fresh";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/jazzband/pip-tools/";
|
2017-03-12 18:10:19 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
|
|
};
|
|
|
|
}
|