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

49 lines
970 B
Nix

{ lib
, beautifulsoup4
, buildPythonPackage
, fetchFromGitHub
, lxml
, pythonOlder
, pytestCheckHook
, setuptools
}:
buildPythonPackage rec {
pname = "pymeteoclimatic";
version = "0.1.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "adrianmo";
repo = "pymeteoclimatic";
rev = "refs/tags/${version}";
hash = "sha256-rP0+OYDnQ4GuoV7DzR6jtgH6ilTMLjdaEFJcz3L0GYQ=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
beautifulsoup4
lxml
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"meteoclimatic"
];
meta = with lib; {
description = "Python wrapper around the Meteoclimatic service";
homepage = "https://github.com/adrianmo/pymeteoclimatic";
changelog = "https://github.com/adrianmo/pymeteoclimatic/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}