pythonPackages.promise: init at 2.3

This commit is contained in:
Kevin Amado 2020-02-09 09:49:08 -05:00 committed by Jon
parent c6f75c74df
commit 638251852e
2 changed files with 51 additions and 0 deletions

View file

@ -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
];
};
}

View file

@ -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.