nixpkgs/pkgs/development/python-modules/bsblan/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.0 KiB
Nix
Raw Normal View History

2021-01-22 08:41:59 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, aresponses
, coverage
, mypy
2022-03-09 23:27:02 +00:00
, poetry-core
, pydantic
2021-01-22 08:41:59 +00:00
, pytest-asyncio
, pytest-cov
, pytest-mock
, pythonOlder
2021-01-22 08:41:59 +00:00
, aiohttp
, attrs
, cattrs
, yarl
}:
buildPythonPackage rec {
pname = "bsblan";
2022-03-02 21:41:54 +00:00
version = "0.5.5";
2022-03-09 23:27:02 +00:00
format = "pyproject";
disabled = pythonOlder "3.8";
2021-01-22 08:41:59 +00:00
src = fetchFromGitHub {
owner = "liudger";
repo = "python-bsblan";
2022-03-02 21:41:54 +00:00
rev = "v${version}";
sha256 = "sha256-kq4cML7D9XC/QRPjGfaWcs0H78OOc2IXGua7qJpWYOQ=";
2021-01-22 08:41:59 +00:00
};
2022-03-09 23:27:02 +00:00
nativeBuildInputs = [
poetry-core
];
2021-01-22 08:41:59 +00:00
propagatedBuildInputs = [
aiohttp
attrs
cattrs
2022-03-09 23:27:02 +00:00
pydantic
2021-01-22 08:41:59 +00:00
yarl
];
checkInputs = [
aresponses
coverage
mypy
pytest-asyncio
pytest-cov
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [
"bsblan"
];
2021-01-22 08:41:59 +00:00
meta = with lib; {
description = "Python client for BSB-Lan";
homepage = "https://github.com/liudger/python-bsblan";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}