ce641f4048
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
49 lines
846 B
Nix
49 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 ];
|
|
};
|
|
}
|