depot/third_party/nixpkgs/pkgs/development/python-modules/pysolcast/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

55 lines
1,012 B
Nix

{ lib
, anyconfig
, buildPythonPackage
, fetchFromGitHub
, isodate
, pytestCheckHook
, pythonOlder
, pyyaml
, requests
, responses
, poetry-core
}:
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=";
};
nativeBuildInputs = [
poetry-core
];
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 ];
};
}