Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.2"; 18 format = "pyproject"; 19 20 src = fetchFromGitHub { 21 owner = "sarugaku"; 22 repo = pname; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-sfoAS3QpD78we8HcXpxjSyEIN1xLRVLExaM3oXe6tLU="; 25 }; 26 27 nativeBuildInputs = [ 28 setuptools 29 ]; 30 31 propagatedBuildInputs = [ 32 attrs 33 cached-property 34 click 35 packaging 36 ]; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 pytest-cov 41 pytest-timeout 42 ]; 43 44 pythonImportsCheck = [ 45 "pythonfinder" 46 ]; 47 48 pytestFlagsArray = [ 49 "--no-cov" 50 ]; 51 52 # these tests invoke git in a subprocess and 53 # for some reason git can't be found even if included in nativeCheckInputs 54 disabledTests = [ 55 "test_shims_are_kept" 56 "test_shims_are_removed" 57 ]; 58 59 meta = with lib; { 60 homepage = "https://github.com/sarugaku/pythonfinder"; 61 changelog = "https://github.com/sarugaku/pythonfinder/blob/v${version}/CHANGELOG.rst"; 62 description = "Cross Platform Search Tool for Finding Pythons"; 63 license = licenses.mit; 64 maintainers = with maintainers; [ cpcloud ]; 65 }; 66}