ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / python-bsblan / default.nix
blobada950cd8aab3fa7ab1d749aa04e47df01b0b9e8
1 { lib
2 , aiohttp
3 , aresponses
4 , buildPythonPackage
5 , fetchFromGitHub
6 , packaging
7 , poetry-core
8 , pydantic
9 , pytest-asyncio
10 , pytest-mock
11 , pytestCheckHook
12 , pythonOlder
13 , yarl
16 buildPythonPackage rec {
17   pname = "python-bsblan";
18   version = "0.5.7";
19   format = "pyproject";
21   disabled = pythonOlder "3.9";
23   src = fetchFromGitHub {
24     owner = "liudger";
25     repo = pname;
26     rev = "v${version}";
27     hash = "sha256-eavARej+R8SPNuwX6LOGr43SJi1AuZszThJVG00vKhQ=";
28   };
30   nativeBuildInputs = [
31     poetry-core
32   ];
34   propagatedBuildInputs = [
35     aiohttp
36     packaging
37     pydantic
38     yarl
39   ];
41   checkInputs = [
42     aresponses
43     pytest-asyncio
44     pytest-mock
45     pytestCheckHook
46   ];
48   postPatch = ''
49     substituteInPlace pyproject.toml \
50       --replace 'version = "0.0.0"' 'version = "${version}"' \
51       --replace "--cov" ""
52   '';
54   pythonImportsCheck = [
55     "bsblan"
56   ];
58   meta = with lib; {
59     description = "Module to control and monitor an BSBLan device programmatically";
60     homepage = "https://github.com/liudger/python-bsblan";
61     license = with licenses; [ mit ];
62     maintainers = with maintainers; [ fab ];
63   };