depot/third_party/nixpkgs/pkgs/development/python-modules/afsapi/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

55 lines
1,018 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, lxml
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "afsapi";
version = "0.2.8";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "wlcrs";
repo = "python-afsapi";
rev = "refs/tags/${version}";
hash = "sha256-eE5BsXNtSU6YUhRn4/SKpMrqaYf8tyfLKdxxGOmNJ9I=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
aiohttp
lxml
];
nativeCheckInputs = [
pytest-aiohttp
pytestCheckHook
];
pytestFlagsArray = [
"async_tests.py"
];
pythonImportsCheck = [
"afsapi"
];
meta = with lib; {
description = "Python implementation of the Frontier Silicon API";
homepage = "https://github.com/wlcrs/python-afsapi";
changelog = "https://github.com/wlcrs/python-afsapi/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}