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

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

58 lines
1.0 KiB
Nix
Raw Normal View History

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