depot/third_party/nixpkgs/pkgs/development/python-modules/pysolcast/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

57 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.3";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "mcaulifn";
repo = "solcast";
rev = "refs/tags/v${version}";
hash = "sha256-BMM6eDloyLee7mkwUE9HpWcRUE62y43YivRjDbwAqIk=";
};
pythonRelaxDeps = [ "responses" ];
build-system = [ poetry-core ];
nativeBuildInputs = [ pythonRelaxDepsHook ];
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 ];
};
}