From d70b7c6c47cbd37093e43b5977800b2cebf37419 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sat, 3 Oct 2020 23:31:43 +0100 Subject: [PATCH 1/2] 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 0000000000000..a542b58056536 --- /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 b7346675e64bd..d4fd4a9b45e26 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2002,6 +2002,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 { }; From b2d7f8dc1ba16018ca9b647c0cab762fa924154c Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sat, 3 Oct 2020 23:50:03 +0100 Subject: [PATCH 2/2] pythonPackages.pymc3: fix build --- pkgs/development/python-modules/pymc3/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/pymc3/default.nix b/pkgs/development/python-modules/pymc3/default.nix index bda74c5063a6b..dfbfe90d2421d 100644 --- a/pkgs/development/python-modules/pymc3/default.nix +++ b/pkgs/development/python-modules/pymc3/default.nix @@ -14,6 +14,8 @@ , pytest , nose , parameterized +, fastprogress +, typing-extensions }: buildPythonPackage rec { @@ -41,6 +43,8 @@ buildPythonPackage rec { h5py arviz packaging + fastprogress + typing-extensions ]; checkInputs = [ @@ -52,6 +56,7 @@ buildPythonPackage rec { # The test suite is computationally intensive and test failures are not # indicative for package usability hence tests are disabled by default. doCheck = false; + pythonImportsCheck = [ "pymc3" ]; # For some reason tests are run as a part of the *install* phase if enabled. # Theano writes compiled code to ~/.theano hence we set $HOME.