2021-10-06 13:57:05 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-10-06 13:57:05 +00:00
|
|
|
pname = "class-registry";
|
2020-11-30 08:33:03 +00:00
|
|
|
version = "3.0.5";
|
2021-10-06 13:57:05 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
2021-10-06 13:57:05 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "todofixthis";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0gpvq4a6qrr2iki6b4vxarjr1jrsw560m2qzm5bb43ix8c8b7y3q";
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
|
2021-10-06 13:57:05 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-11-30 08:33:03 +00:00
|
|
|
|
2021-10-06 13:57:05 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"class_registry"
|
2020-11-30 08:33:03 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-10-06 13:57:05 +00:00
|
|
|
description = "Factory and registry pattern for Python classes";
|
|
|
|
homepage = "https://class-registry.readthedocs.io/en/latest/";
|
2020-11-30 08:33:03 +00:00
|
|
|
license = licenses.mit;
|
2021-10-06 13:57:05 +00:00
|
|
|
maintainers = with maintainers; [ kevincox SuperSandro2000 ];
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
}
|