diff --git a/pkgs/development/python-modules/typepy/default.nix b/pkgs/development/python-modules/typepy/default.nix index b0a505e3205b..a1d9e7df1534 100644 --- a/pkgs/development/python-modules/typepy/default.nix +++ b/pkgs/development/python-modules/typepy/default.nix @@ -1,34 +1,46 @@ -{ buildPythonPackage +{ lib +, buildPythonPackage , fetchFromGitHub -, lib , mbstrdecoder , python-dateutil , pytz , packaging , pytestCheckHook +, pythonOlder , tcolorpy }: buildPythonPackage rec { pname = "typepy"; - version = "1.3.0"; + version = "1.3.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "thombashi"; repo = pname; - rev = "v${version}"; - hash = "sha256-J6SgVd2m0wOVr2ZV/pryRcJrn+BYTGstAUQO349c2lE="; + rev = "refs/tags/v${version}"; + hash = "sha256-cgy1+6RZ1DUyH45bAKpGPOOZCwhCUghummw2fnfJGww="; }; - propagatedBuildInputs = [ mbstrdecoder python-dateutil pytz packaging ]; + propagatedBuildInputs = [ + mbstrdecoder + python-dateutil + pytz + packaging + ]; - nativeCheckInputs = [ pytestCheckHook ]; - checkInputs = [ tcolorpy ]; + nativeCheckInputs = [ + pytestCheckHook + tcolorpy + ]; meta = with lib; { + description = "Library for variable type checker/validator/converter at a run time"; homepage = "https://github.com/thombashi/typepy"; - description = "A library for variable type checker/validator/converter at a run time"; - maintainers = with maintainers; [ genericnerdyusername ]; + changelog = "https://github.com/thombashi/typepy/releases/tag/v${version}"; license = licenses.mit; + maintainers = with maintainers; [ genericnerdyusername ]; }; }