Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 40 lines 688 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, appdirs 5, requests 6, pytest 7}: 8 9buildPythonPackage rec { 10 pname = "pipdate"; 11 version = "0.3.2"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "a27f64d13269adfd8594582f5a62c9f2151b426e701afdfc3b4f4019527b4121"; 16 }; 17 18 propagatedBuildInputs = [ 19 appdirs 20 requests 21 ]; 22 23 checkInputs = [ 24 pytest 25 ]; 26 27 checkPhase = '' 28 HOME=$(mktemp -d) pytest test/test_pipdate.py 29 ''; 30 31 # tests require network access 32 doCheck = false; 33 34 meta = with lib; { 35 description = "pip update helpers"; 36 homepage = https://github.com/nschloe/pipdate; 37 license = licenses.mit; 38 maintainers = [ maintainers.costrouc ]; 39 }; 40}