nixpkgs-suyu/pkgs/development/python-modules/catalogue/default.nix

35 lines
760 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
2020-08-29 20:31:02 +02:00
, pytestCheckHook
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
pname = "catalogue";
version = "2.0.6";
2020-06-20 13:38:17 +02:00
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0idjhx2s8cy6ppd18k1zy246d97gdd6i217m5q26fwa47xh3asik";
};
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
typing-extensions
];
2020-08-29 20:31:02 +02:00
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "catalogue" ];
meta = with lib; {
description = "Tiny library for adding function or object registries";
homepage = "https://github.com/explosion/catalogue";
changelog = "https://github.com/explosion/catalogue/releases/tag/v${version}";
license = licenses.mit;
};
}