3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/afsapi/default.nix
2021-11-21 17:47:28 +01:00

50 lines
846 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, lxml
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "afsapi";
version = "0.0.4";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "zhelev";
repo = "python-afsapi";
rev = version;
sha256 = "aevxhHuRedDs0JxeMlYSKHDQwcIs7miRm4FCtssdE0w=";
};
propagatedBuildInputs = [
aiohttp
lxml
];
checkInputs = [
pytest-aiohttp
pytestCheckHook
];
pytestFlagsArray = [
"async_tests.py"
];
pythonImportsCheck = [
"afsapi"
];
meta = with lib; {
description = "Python implementation of the Frontier Silicon API";
homepage = "https://github.com/zhelev/python-afsapi";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}