evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / aiosignal / default.nix
blob7e024ce2762644aa6880d1a12ff18da775d08d8b
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   frozenlist,
6   pytest-asyncio,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "aiosignal";
13   version = "1.3.1";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "aio-libs";
20     repo = pname;
21     rev = "v${version}";
22     hash = "sha256-vx3Fe28r+0it1UFwyDSD9NNyeIN4tywTyr4pVp49WuU=";
23   };
25   propagatedBuildInputs = [ frozenlist ];
27   nativeCheckInputs = [
28     pytest-asyncio
29     pytestCheckHook
30   ];
32   postPatch = ''
33     substituteInPlace setup.cfg \
34       --replace "filterwarnings = error" "" \
35       --replace "--cov=aiosignal" ""
36   '';
38   pythonImportsCheck = [ "aiosignal" ];
40   meta = with lib; {
41     description = "Python list of registered asynchronous callbacks";
42     homepage = "https://github.com/aio-libs/aiosignal";
43     changelog = "https://github.com/aio-libs/aiosignal/blob/v${version}/CHANGES.rst";
44     license = with licenses; [ asl20 ];
45     maintainers = with maintainers; [ fab ];
46   };