depot/third_party/nixpkgs/pkgs/development/python-modules/aiotractive/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

47 lines
893 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
, yarl
}:
buildPythonPackage rec {
pname = "aiotractive";
version = "0.5.7";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "zhulik";
repo = "aiotractive";
rev = "refs/tags/v${version}";
hash = "sha256-fIdIFG1OpAN1R2L2RryTzYZyqGLo3tqAAkRC8UUFM4k=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
yarl
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"aiotractive"
];
meta = with lib; {
changelog = "https://github.com/zhulik/aiotractive/releases/tag/v${version}";
description = "Python client for the Tractive REST API";
homepage = "https://github.com/zhulik/aiotractive";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}