diff options
Diffstat (limited to 'pkgs/development/python-modules/typer/default.nix')
-rw-r--r-- | pkgs/development/python-modules/typer/default.nix | 57 |
1 files changed, 21 insertions, 36 deletions
diff --git a/pkgs/development/python-modules/typer/default.nix b/pkgs/development/python-modules/typer/default.nix index b072f3a6d8ca9..298db51c8f7b5 100644 --- a/pkgs/development/python-modules/typer/default.nix +++ b/pkgs/development/python-modules/typer/default.nix @@ -1,45 +1,34 @@ -{ lib -, stdenv -, buildPythonPackage -, click -, colorama -, coverage -, fetchpatch -, fetchPypi -, flit-core -, pytest-sugar -, pytest-xdist -, pytestCheckHook -, pythonOlder -, rich -, shellingham -, typing-extensions +{ + lib, + stdenv, + buildPythonPackage, + click, + colorama, + coverage, + fetchPypi, + pdm-backend, + pytest-sugar, + pytest-xdist, + pytestCheckHook, + pythonOlder, + rich, + shellingham, + typing-extensions, }: buildPythonPackage rec { pname = "typer"; - version = "0.9.0"; + version = "0.12.3"; format = "pyproject"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - hash = "sha256-UJIv15rqL0dRqOBAj/ENJmK9DIu/qEdVppnzutopeLI="; + hash = "sha256-SecxMUgdgEKI72JZjZehzu8wWJBapTahE0+QiRujVII="; }; - patches = [ - # https://github.com/tiangolo/typer/pull/651 - (fetchpatch { - name = "unpin-flit-core-dependency.patch"; - url = "https://github.com/tiangolo/typer/commit/78a0ee2eec9f54ad496420e177fdaad84984def1.patch"; - hash = "sha256-VVUzFvF2KCXXkCfCU5xu9acT6OLr+PlQQPeVGONtU4A="; - }) - ]; - - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ pdm-backend ]; propagatedBuildInputs = [ click @@ -71,13 +60,9 @@ buildPythonPackage rec { # fails also on Linux "test_show_completion" "test_install_completion" - ] ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ - "test_install_completion" - ]; + ] ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ "test_install_completion" ]; - pythonImportsCheck = [ - "typer" - ]; + pythonImportsCheck = [ "typer" ]; meta = with lib; { description = "Library for building CLI applications"; |