nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 32 lines 603 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest, 6}: 7 8buildPythonPackage rec { 9 pname = "shutilwhich"; 10 version = "1.1.0"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "mbr"; 15 repo = "shutilwhich"; 16 rev = version; 17 sha256 = "05fwcjn86w8wprck04iv1zccfi39skdf0lhwpb4b9gpvklyc9mj0"; 18 }; 19 20 nativeCheckInputs = [ pytest ]; 21 22 checkPhase = '' 23 pytest -rs 24 ''; 25 26 meta = { 27 description = "Backport of shutil.which"; 28 license = lib.licenses.psfl; 29 homepage = "https://github.com/mbr/shutilwhich"; 30 maintainers = with lib.maintainers; [ multun ]; 31 }; 32}