From 638251852eeed0bfaa7193269b2b079f821e7c07 Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Sun, 9 Feb 2020 09:49:08 -0500 Subject: [PATCH] pythonPackages.promise: init at 2.3 --- .../python-modules/promise/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/promise/default.nix diff --git a/pkgs/development/python-modules/promise/default.nix b/pkgs/development/python-modules/promise/default.nix new file mode 100644 index 000000000000..68668812fc8a --- /dev/null +++ b/pkgs/development/python-modules/promise/default.nix @@ -0,0 +1,49 @@ +{ buildPythonPackage +, fetchPypi +, lib + +, coveralls +, gevent +, mock +, pytest-asyncio +, pytest-benchmark +, pytestcov +, six +}: + +buildPythonPackage rec { + pname = "promise"; + version = "2.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "1l4kknj97dj5pxfpsz3ln78x9a843561c740b1m4pfi3qlvq7lfz"; + }; + + patchPhase = '' + substituteInPlace setup.py \ + --replace '"futures",' "" + ''; + + propagatedBuildInputs = [ + gevent + six + ]; + + checkInputs = [ + coveralls + mock + pytest-asyncio + pytest-benchmark + pytestcov + ]; + + meta = with lib; { + description = "Ultra-performant Promise implementation in Python"; + homepage = "https://github.com/syrusakbary/promise"; + license = licenses.mit; + maintainers = with maintainers; [ + kamadorueda + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 49bda83cddcf..3b5e60ae9607 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4793,6 +4793,8 @@ in { precis-i18n = callPackage ../development/python-modules/precis-i18n { }; + promise = callPackage ../development/python-modules/promise { }; + prox-tv = callPackage ../development/python-modules/prox-tv { # We need to use blas instead of openblas on darwin, # see https://github.com/NixOS/nixpkgs/pull/45013.