From 9a09285f5a89b73fc79a91d29ce8d02cef829211 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sat, 3 Oct 2020 23:31:43 +0100 Subject: [PATCH] pythonPackages.fastprogress: init at 1.0.0 --- .../python-modules/fastprogress/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/fastprogress/default.nix diff --git a/pkgs/development/python-modules/fastprogress/default.nix b/pkgs/development/python-modules/fastprogress/default.nix new file mode 100644 index 000000000000..a542b5805653 --- /dev/null +++ b/pkgs/development/python-modules/fastprogress/default.nix @@ -0,0 +1,32 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, numpy +, pytest +, pythonOlder +}: + +buildPythonPackage rec { + pname = "fastprogress"; + version = "1.0.0"; + disabled = pythonOlder "3.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "1zhv37q6jkqd1pfhlkd4yzrc3dg83vyksgzf32mjlhd5sb0qmql9"; + }; + + propagatedBuildInputs = [ numpy ]; + + # no real tests + doCheck = false; + pythonImportsCheck = [ "fastprogress" ]; + + meta = with stdenv.lib; { + homepage = "https://github.com/fastai/fastprogress"; + description = "Simple and flexible progress bar for Jupyter Notebook and console"; + license = licenses.asl20; + maintainers = with maintainers; [ ris ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 93874b5ff30d..28092b35d84c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2004,6 +2004,8 @@ in { fastpbkdf2 = callPackage ../development/python-modules/fastpbkdf2 { }; + fastprogress = callPackage ../development/python-modules/fastprogress { }; + fastrlock = callPackage ../development/python-modules/fastrlock { }; fasttext = callPackage ../development/python-modules/fasttext { };