diff --git a/pkgs/development/python-modules/class-registry/default.nix b/pkgs/development/python-modules/class-registry/default.nix index 3faf07966d09..1accefe5f1e5 100644 --- a/pkgs/development/python-modules/class-registry/default.nix +++ b/pkgs/development/python-modules/class-registry/default.nix @@ -1,32 +1,32 @@ -{ - buildPythonPackage, - fetchPypi, - lib, - nose, - six, - typing ? null, - isPy27, +{ lib +, buildPythonPackage +, fetchFromGitHub +, nose +, pythonOlder }: buildPythonPackage rec { pname = "class-registry"; - version = "2.1.2"; + version = "3.0.5"; + disabled = pythonOlder "3.5"; - src = fetchPypi { - inherit pname version; - sha256 = "0zjf9nczl1ifzj07bgs6mwxsfd5xck9l0lchv2j0fv2n481xp2v7"; + src = fetchFromGitHub { + owner = "todofixthis"; + repo = pname; + rev = version; + sha256 = "0gpvq4a6qrr2iki6b4vxarjr1jrsw560m2qzm5bb43ix8c8b7y3q"; }; - propagatedBuildInputs = [ six ] ++ lib.optional isPy27 typing; - checkInputs = [ nose ]; + checkInputs = [ + nose + ]; - # Tests currently failing. - doCheck = false; + pythonImportsCheck = [ "class_registry" ]; - meta = { - description = "Factory+Registry pattern for Python classes."; + meta = with lib; { + description = "Factory and registry pattern for Python classes"; homepage = "https://class-registry.readthedocs.io/en/latest/"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ kevincox ]; + license = licenses.mit; + maintainers = with maintainers; [ kevincox ]; }; }