Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pysolcast / default.nix
blobf4121a53e794800bd07d0b2ecfecd024d86a1d85
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , isodate
5 , pytestCheckHook
6 , pythonOlder
7 , pyyaml
8 , requests
9 , responses
10 , poetry-core
13 buildPythonPackage rec {
14   pname = "pysolcast";
15   version = "2.0.0";
16   pyproject = true;
18   disabled = pythonOlder "3.9";
20   src = fetchFromGitHub {
21     owner = "mcaulifn";
22     repo = "solcast";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-jLhM47o6LvkPux0kusOrRk4TDS6VLWE0QMEiQxlBCwo=";
25   };
27   nativeBuildInputs = [
28     poetry-core
29   ];
31   propagatedBuildInputs = [
32     isodate
33     pyyaml
34     requests
35   ];
37   nativeCheckInputs = [
38     pytestCheckHook
39     responses
40   ];
42   pythonImportsCheck = [
43     "pysolcast"
44   ];
46   meta = with lib; {
47     description = "Python library for interacting with the Solcast API";
48     homepage = "https://github.com/mcaulifn/solcast";
49     changelog = "https://github.com/mcaulifn/solcast/releases/tag/v${version}";
50     license = with licenses; [ asl20 ];
51     maintainers = with maintainers; [ fab ];
52   };