nixpkgs/pkgs/development/python-modules/pysolcast/default.nix
2024-04-19 17:48:44 +00:00

62 lines
1.1 KiB
Nix

{ lib
, anyconfig
, buildPythonPackage
, fetchFromGitHub
, isodate
, pytestCheckHook
, pythonOlder
, pyyaml
, requests
, responses
, poetry-core
, pythonRelaxDepsHook
}:
buildPythonPackage rec {
pname = "pysolcast";
version = "2.0.2";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "mcaulifn";
repo = "solcast";
rev = "refs/tags/v${version}";
hash = "sha256-DXJkbAlkxBjUEbziFNdr8SilB2GRUoAwvrr0HY56Deg=";
};
pythonRelaxDeps = [
"responses"
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [
anyconfig
isodate
pyyaml
requests
];
nativeCheckInputs = [
pytestCheckHook
responses
];
pythonImportsCheck = [
"pysolcast"
];
meta = with lib; {
description = "Python library for interacting with the Solcast API";
homepage = "https://github.com/mcaulifn/solcast";
changelog = "https://github.com/mcaulifn/solcast/releases/tag/v${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}