mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
47 lines
958 B
Nix
47 lines
958 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, frozenlist
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiosignal";
|
|
version = "1.2.0"; # re-enable tests after 1.2.0
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aio-libs";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1pamfc2l95s1q86jvmbp17chjy129gk01kwy8xm88d2ijy8s1caq";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
frozenlist
|
|
];
|
|
|
|
# not compatible w ith latest asyncio
|
|
doCheck = false;
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace pytest.ini \
|
|
--replace "--cov=aiosignal" ""
|
|
'';
|
|
|
|
pythonImportsCheck = [ "aiosignal" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python list of registered asynchronous callbacks";
|
|
homepage = "https://github.com/aio-libs/aiosignal";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|