ttaenc: init at 3.4.1 (#238757)
[NixPkgs.git] / pkgs / development / python-modules / pysolcast / default.nix
blob7b13e0cb81e3af1038728a638a6f517b1b6d3231
2   lib,
3   anyconfig,
4   buildPythonPackage,
5   fetchFromGitHub,
6   isodate,
7   poetry-core,
8   poetry-dynamic-versioning,
9   pytestCheckHook,
10   pythonOlder,
11   pyyaml,
12   requests,
13   responses,
16 buildPythonPackage rec {
17   pname = "pysolcast";
18   version = "2.0.6";
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-x91QVCDPjfC8rCVam/mrc8HP84ONa2/mJtSV64hrilc=";
28   };
30   pythonRelaxDeps = [ "responses" ];
32   build-system = [
33     poetry-core
34     poetry-dynamic-versioning
35   ];
37   dependencies = [
38     anyconfig
39     isodate
40     pyyaml
41     requests
42   ];
44   nativeCheckInputs = [
45     pytestCheckHook
46     responses
47   ];
49   pythonImportsCheck = [ "pysolcast" ];
51   meta = with lib; {
52     description = "Python library for interacting with the Solcast API";
53     homepage = "https://github.com/mcaulifn/solcast";
54     changelog = "https://github.com/mcaulifn/solcast/releases/tag/v${version}";
55     license = with licenses; [ asl20 ];
56     maintainers = with maintainers; [ fab ];
57   };