Merge pull request #109620 from fabaff/swisshydrodata

This commit is contained in:
Sandro 2021-01-17 14:40:39 +01:00 committed by GitHub
commit 458832e973
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 1 deletions

View file

@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchPypi
, requests
}:
buildPythonPackage rec {
pname = "swisshydrodata";
version = "0.0.3";
src = fetchPypi {
inherit pname version;
sha256 = "1adpy6k2bknffzl5rckqpvaqyrvc00d6a4a4541438dqasx61npl";
};
propagatedBuildInputs = [ requests ];
# Tests are not releases at the moment
doCheck = false;
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 ];
};
}

View file

@ -794,7 +794,7 @@
"supervisord" = ps: with ps; [ ];
"supla" = ps: with ps; [ ]; # missing inputs: asyncpysupla
"surepetcare" = ps: with ps; [ ]; # missing inputs: surepy
"swiss_hydrological_data" = ps: with ps; [ ]; # missing inputs: swisshydrodata
"swiss_hydrological_data" = ps: with ps; [ swisshydrodata ];
"swiss_public_transport" = ps: with ps; [ python-opendata-transport ];
"swisscom" = ps: with ps; [ ];
"switch" = ps: with ps; [ ];

View file

@ -7427,6 +7427,8 @@ in {
swagger-ui-bundle = callPackage ../development/python-modules/swagger-ui-bundle { };
swisshydrodata = callPackage ../development/python-modules/swisshydrodata { };
swspotify = callPackage ../development/python-modules/swspotify { };
sybil = callPackage ../development/python-modules/sybil { };