diff --git a/pkgs/development/python-modules/variants/default.nix b/pkgs/development/python-modules/variants/default.nix index e1483dbf96fd..8379034af9e5 100644 --- a/pkgs/development/python-modules/variants/default.nix +++ b/pkgs/development/python-modules/variants/default.nix @@ -1,20 +1,22 @@ -{ buildPythonPackage -, isPy27 +{ lib +, buildPythonPackage , fetchPypi -, pytest-runner -, setuptools-scm , pytestCheckHook +, pythonOlder +, setuptools-scm , six -, lib }: buildPythonPackage rec { pname = "variants"; version = "0.2.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { - inherit pname version ; - sha256 = "511f75b4cf7483c27e4d86d9accf2b5317267900c166d17636beeed118929b90"; + inherit pname version; + hash = "sha256-UR91tM90g8J+TYbZrM8rUxcmeQDBZtF2Nr7u0RiSm5A="; }; nativeBuildInputs = [ @@ -26,9 +28,14 @@ buildPythonPackage rec { six ]; + pythonImportsCheck = [ + "variants" + ]; + meta = with lib; { description = "Library providing syntactic sugar for creating variant forms of a canonical function"; homepage = "https://github.com/python-variants/variants"; + changelog = "https://github.com/python-variants/variants/releases/tag/${version}"; license = licenses.asl20; maintainers = with maintainers; [ rakesh4g ]; };