parent
7882b7fa23
commit
db26b5ce17
@ -1,32 +0,0 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, nose |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "class-registry"; |
||||
version = "3.0.5"; |
||||
disabled = pythonOlder "3.5"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "todofixthis"; |
||||
repo = pname; |
||||
rev = version; |
||||
sha256 = "0gpvq4a6qrr2iki6b4vxarjr1jrsw560m2qzm5bb43ix8c8b7y3q"; |
||||
}; |
||||
|
||||
checkInputs = [ |
||||
nose |
||||
]; |
||||
|
||||
pythonImportsCheck = [ "class_registry" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "Factory and registry pattern for Python classes"; |
||||
homepage = "https://class-registry.readthedocs.io/en/latest/"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ kevincox ]; |
||||
}; |
||||
} |
@ -1,28 +1,34 @@ |
||||
{ lib, buildPythonPackage, fetchPypi, isPy27, pytestCheckHook }: |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "phx-class-registry"; |
||||
pname = "class-registry"; |
||||
version = "3.0.5"; |
||||
disabled = pythonOlder "3.5"; |
||||
|
||||
disabled = isPy27; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
sha256 = "14iap8db2ldmnlf5kvxs52aps31rl98kpa5nq8wdm30a86n6457i"; |
||||
src = fetchFromGitHub { |
||||
owner = "todofixthis"; |
||||
repo = pname; |
||||
rev = version; |
||||
sha256 = "0gpvq4a6qrr2iki6b4vxarjr1jrsw560m2qzm5bb43ix8c8b7y3q"; |
||||
}; |
||||
|
||||
checkInputs = [ pytestCheckHook ]; |
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
disabledTests = [ |
||||
"test_branding" |
||||
"test_happy_path" |
||||
"test_len" |
||||
pythonImportsCheck = [ |
||||
"class_registry" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Registry pattern for Python classes, with setuptools entry points integration"; |
||||
homepage = "https://github.com/todofixthis/class-registry"; |
||||
description = "Factory and registry pattern for Python classes"; |
||||
homepage = "https://class-registry.readthedocs.io/en/latest/"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ SuperSandro2000 ]; |
||||
maintainers = with maintainers; [ kevincox SuperSandro2000 ]; |
||||
}; |
||||
} |
||||
|
Loading…
Reference in new issue