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