depot/third_party/nixpkgs/pkgs/development/python-modules/pysolcast/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

59 lines
1.1 KiB
Nix

{
lib,
anyconfig,
buildPythonPackage,
fetchFromGitHub,
isodate,
poetry-core,
poetry-dynamic-versioning,
pytestCheckHook,
pythonOlder,
pyyaml,
requests,
responses,
}:
buildPythonPackage rec {
pname = "pysolcast";
version = "2.0.5";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "mcaulifn";
repo = "solcast";
rev = "refs/tags/v${version}";
hash = "sha256-NssU1RZU5Xc9s6E4nnjYElAGZrE4ER2jSzamrCx/Yng=";
};
pythonRelaxDeps = [ "responses" ];
build-system = [
poetry-core
poetry-dynamic-versioning
];
dependencies = [
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 ];
};
}