depot/third_party/nixpkgs/pkgs/development/python-modules/promise/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

48 lines
922 B
Nix

{ buildPythonPackage
, fetchFromGitHub
, lib
, six
, pytestCheckHook
, mock
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "promise";
version = "2.3.0";
src = fetchFromGitHub {
owner = "syrusakbary";
repo = "promise";
rev = "v${version}";
sha256 = "17mq1bm78xfl0x1g50ng502m5ldq6421rzz35hlqafsj0cq8dkp6";
};
postPatch = ''
substituteInPlace tests/test_extra.py \
--replace "assert_exc.traceback[-1].path.strpath" "str(assert_exc.traceback[-1].path)"
'';
propagatedBuildInputs = [
six
];
checkInputs = [
pytestCheckHook
mock
pytest-asyncio
];
disabledTestPaths = [
"tests/test_benchmark.py"
];
meta = with lib; {
description = "Ultra-performant Promise implementation in Python";
homepage = "https://github.com/syrusakbary/promise";
license = licenses.mit;
maintainers = with maintainers; [
kamadorueda
];
};
}