nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 48 lines 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, pythonAtLeast 6, pythonOlder 7, typing-extensions 8, zipp 9}: 10 11buildPythonPackage rec { 12 pname = "catalogue"; 13 version = "2.0.7"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "sha256-U10zrnnr0hyimFUdhdoYaui44d82sPsCRtp3QWPsLWs="; 21 }; 22 23 propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ 24 typing-extensions 25 zipp 26 ]; 27 28 checkInputs = [ 29 pytestCheckHook 30 ]; 31 32 disabledTests = lib.optionals (pythonAtLeast "3.10") [ 33 # https://github.com/explosion/catalogue/issues/27 34 "test_entry_points" 35 ]; 36 37 pythonImportsCheck = [ 38 "catalogue" 39 ]; 40 41 meta = with lib; { 42 description = "Tiny library for adding function or object registries"; 43 homepage = "https://github.com/explosion/catalogue"; 44 changelog = "https://github.com/explosion/catalogue/releases/tag/v${version}"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ ]; 47 }; 48}