depot/third_party/nixpkgs/pkgs/development/python-modules/swisshydrodata/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

37 lines
783 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
requests,
requests-mock,
}:
buildPythonPackage rec {
pname = "swisshydrodata";
version = "0.1.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "Bouni";
repo = pname;
rev = version;
sha256 = "1rdgfc6zg5j3fvrpbqs9vc3n5m66r5yljawyl7nmrqd5lwq1lqak";
};
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [
pytestCheckHook
requests-mock
];
pythonImportsCheck = [ "swisshydrodata" ];
meta = with lib; {
description = "Python client to get data from the Swiss federal Office for Environment FEON";
homepage = "https://github.com/bouni/swisshydrodata";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}