depot/third_party/nixpkgs/pkgs/development/python-modules/aiotractive/default.nix

40 lines
815 B
Nix
Raw Normal View History

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, yarl
}:
buildPythonPackage rec {
pname = "aiotractive";
version = "0.5.6";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "zhulik";
repo = pname;
rev = "v${version}";
hash = "sha256-jJw1L1++Z/r+E12tA6zoyyy4MmTpaaVVzKwfI6xcDBQ=";
};
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 ];
};
}