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

61 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.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "mcaulifn";
repo = "solcast";
rev = "refs/tags/v${version}";
hash = "sha256-jLhM47o6LvkPux0kusOrRk4TDS6VLWE0QMEiQxlBCwo=";
};
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 ];
};
}