Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 50 lines 899 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, isPy27 6, appdirs 7, importlib-metadata 8, requests 9, pytest 10, wheel 11}: 12 13buildPythonPackage rec { 14 pname = "pipdate"; 15 version = "0.5.2"; 16 format = "pyproject"; 17 disabled = isPy27; # abandoned 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "507065231f2d50b6319d483432cba82aadad78be21b7a2969b5881ed8dee9ab4"; 22 }; 23 24 nativeBuildInputs = [ wheel ]; 25 26 propagatedBuildInputs = [ 27 appdirs 28 requests 29 ] ++ lib.optionals (pythonOlder "3.8") [ 30 importlib-metadata 31 ]; 32 33 checkInputs = [ 34 pytest 35 ]; 36 37 checkPhase = '' 38 HOME=$(mktemp -d) pytest test/test_pipdate.py 39 ''; 40 41 # tests require network access 42 doCheck = false; 43 44 meta = with lib; { 45 description = "pip update helpers"; 46 homepage = "https://github.com/nschloe/pipdate"; 47 license = licenses.mit; 48 maintainers = [ maintainers.costrouc ]; 49 }; 50}