Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 54 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch, 6 pytestCheckHook, 7 pytest-cov-stub, 8 pythonOlder, 9 setuptools, 10 wheel, 11}: 12 13buildPythonPackage rec { 14 pname = "wheel-filename"; 15 version = "1.4.1"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchFromGitHub { 21 owner = "jwodder"; 22 repo = pname; 23 rev = "v${version}"; 24 hash = "sha256-M3XGHG733X5qKuMS6mvFSFHYOwWPaBMXw+w0eYo6ByE="; 25 }; 26 27 patches = [ 28 (fetchpatch { 29 name = "remove-wheel-dependency-constraint.patch"; 30 url = "https://github.com/jwodder/wheel-filename/commit/11cfa57c8a32fa2a52fb5fe537859997bb642e75.patch"; 31 hash = "sha256-ssePCVlJuHPJpPyFET3FnnWRlslLnZbnfn42g52yVN4="; 32 }) 33 ]; 34 35 nativeBuildInputs = [ 36 setuptools 37 wheel 38 ]; 39 40 nativeCheckInputs = [ 41 pytestCheckHook 42 pytest-cov-stub 43 ]; 44 45 pythonImportsCheck = [ "wheel_filename" ]; 46 47 meta = with lib; { 48 description = "Parse wheel filenames"; 49 mainProgram = "wheel-filename"; 50 homepage = "https://github.com/jwodder/wheel-filename"; 51 license = with licenses; [ mit ]; 52 maintainers = with lib.maintainers; [ ayazhafiz ]; 53 }; 54}