Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 42 lines 844 B view raw
1{ lib 2, fetchPypi 3, pythonOlder 4, buildPythonPackage 5, pip 6, pytest 7, pytest-xdist 8, click 9, setuptools-scm 10, git 11, glibcLocales 12, mock 13, pep517 14}: 15 16buildPythonPackage rec { 17 pname = "pip-tools"; 18 version = "6.1.0"; 19 20 disabled = pythonOlder "3.6"; 21 22 src = fetchPypi { 23 inherit pname version; 24 sha256 = "sha256-QAv3finMpIwxq8IQBCkyu1LcwTjvTqTVLF20KaqK5u4="; 25 }; 26 27 LC_ALL = "en_US.UTF-8"; 28 checkInputs = [ pytest git glibcLocales mock pytest-xdist ]; 29 propagatedBuildInputs = [ pip click setuptools-scm pep517 ]; 30 31 checkPhase = '' 32 export HOME=$(mktemp -d) VIRTUAL_ENV=1 33 py.test -m "not network" 34 ''; 35 36 meta = with lib; { 37 description = "Keeps your pinned dependencies fresh"; 38 homepage = "https://github.com/jazzband/pip-tools/"; 39 license = licenses.bsd3; 40 maintainers = with maintainers; [ zimbatm ]; 41 }; 42}