Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 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.5"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "240c0f270ddb7470ad7b8c8fba4106e3dbd8817a370624fd8c32cf19155c9547"; 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}