Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 pytest, 6}: 7 8buildPythonPackage rec { 9 pname = "backports-shutil-which"; 10 version = "3.5.2"; 11 12 src = fetchPypi { 13 pname = "backports.shutil_which"; 14 inherit version; 15 sha256 = "fe39f567cbe4fad89e8ac4dbeb23f87ef80f7fe8e829669d0221ecdb0437c133"; 16 }; 17 18 nativeCheckInputs = [ pytest ]; 19 20 checkPhase = '' 21 py.test test 22 ''; 23 24 meta = with lib; { 25 description = "Backport of shutil.which from Python 3.3"; 26 homepage = "https://github.com/minrk/backports.shutil_which"; 27 license = licenses.psfl; 28 maintainers = with maintainers; [ jluttine ]; 29 }; 30}