Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / aiosignal / default.nix
blob2b3addc35917c0ad7e18bbc7002c0a04e29a4a5c
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , frozenlist
5 , pytest-asyncio
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "aiosignal";
12   version = "1.3.1";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "aio-libs";
19     repo = pname;
20     rev = "v${version}";
21     hash = "sha256-vx3Fe28r+0it1UFwyDSD9NNyeIN4tywTyr4pVp49WuU=";
22   };
24   propagatedBuildInputs = [
25     frozenlist
26   ];
28   nativeCheckInputs = [
29     pytest-asyncio
30     pytestCheckHook
31   ];
33   postPatch = ''
34     substituteInPlace setup.cfg \
35       --replace "filterwarnings = error" "" \
36       --replace "--cov=aiosignal" ""
37   '';
39   pythonImportsCheck = [
40     "aiosignal"
41   ];
43   meta = with lib; {
44     description = "Python list of registered asynchronous callbacks";
45     homepage = "https://github.com/aio-libs/aiosignal";
46     changelog = "https://github.com/aio-libs/aiosignal/blob/v${version}/CHANGES.rst";
47     license = with licenses; [ asl20 ];
48     maintainers = with maintainers; [ fab ];
49   };