Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pysolcast / default.nix
blob3123b1f392c68ad7c53e239e71984c7a5d555b4e
2   lib,
3   anyconfig,
4   buildPythonPackage,
5   fetchFromGitHub,
6   isodate,
7   pytestCheckHook,
8   pythonOlder,
9   pyyaml,
10   requests,
11   responses,
12   poetry-core,
13   pythonRelaxDepsHook,
16 buildPythonPackage rec {
17   pname = "pysolcast";
18   version = "2.0.2";
19   pyproject = true;
21   disabled = pythonOlder "3.9";
23   src = fetchFromGitHub {
24     owner = "mcaulifn";
25     repo = "solcast";
26     rev = "refs/tags/v${version}";
27     hash = "sha256-DXJkbAlkxBjUEbziFNdr8SilB2GRUoAwvrr0HY56Deg=";
28   };
30   pythonRelaxDeps = [ "responses" ];
32   build-system = [ poetry-core ];
34   nativeBuildInputs = [ pythonRelaxDepsHook ];
36   dependencies = [
37     anyconfig
38     isodate
39     pyyaml
40     requests
41   ];
43   nativeCheckInputs = [
44     pytestCheckHook
45     responses
46   ];
48   pythonImportsCheck = [ "pysolcast" ];
50   meta = with lib; {
51     description = "Python library for interacting with the Solcast API";
52     homepage = "https://github.com/mcaulifn/solcast";
53     changelog = "https://github.com/mcaulifn/solcast/releases/tag/v${version}";
54     license = with licenses; [ asl20 ];
55     maintainers = with maintainers; [ fab ];
56   };