diff options
author | Kevin Amado <kamadorueda@gmail.com> | 2020-02-09 09:49:08 -0500 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-02-23 12:43:39 -0800 |
commit | 638251852eeed0bfaa7193269b2b079f821e7c07 (patch) | |
tree | 673d0b8ee8d511d4449458607262f44a5091e235 /pkgs/development/python-modules/promise | |
parent | c6f75c74df9fb26e53a3874088fcac4a0ed28863 (diff) |
pythonPackages.promise: init at 2.3
Diffstat (limited to 'pkgs/development/python-modules/promise')
-rw-r--r-- | pkgs/development/python-modules/promise/default.nix | 49 |
1 files changed, 49 insertions, 0 deletions
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 + ]; + }; +} |