1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, pytestCheckHook 6, attrs 7, cached-property 8, click 9, packaging 10, pytest-cov 11, pytest-timeout 12, setuptools 13}: 14 15buildPythonPackage rec { 16 pname = "pythonfinder"; 17 version = "1.3.1"; 18 format = "pyproject"; 19 20 src = fetchFromGitHub { 21 owner = "sarugaku"; 22 repo = pname; 23 rev = "refs/tags/v${version}"; 24 sha256 = "sha256-N/q9zi2SX38ivSpnjrx+bEzdR9cS2ivSgy42SR8cl+Q="; 25 }; 26 27 nativeBuildInputs = [ 28 setuptools 29 ]; 30 31 propagatedBuildInputs = [ 32 attrs 33 cached-property 34 click 35 packaging 36 ]; 37 38 checkInputs = [ 39 pytestCheckHook 40 pytest-cov 41 pytest-timeout 42 ]; 43 44 pytestFlagsArray = [ "--no-cov" ]; 45 46 # these tests invoke git in a subprocess and 47 # for some reason git can't be found even if included in checkInputs 48 disabledTests = [ 49 "test_shims_are_kept" 50 "test_shims_are_removed" 51 ]; 52 53 meta = with lib; { 54 homepage = "https://github.com/sarugaku/pythonfinder"; 55 description = "Cross Platform Search Tool for Finding Pythons"; 56 license = licenses.mit; 57 maintainers = with maintainers; [ cpcloud ]; 58 }; 59}