mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
Merge pull request #126781 from dotlambda/buienradar-init
python3Packages.buienradar: init at 1.0.4
This commit is contained in:
commit
80babde84e
58
pkgs/development/python-modules/buienradar/default.nix
Normal file
58
pkgs/development/python-modules/buienradar/default.nix
Normal file
|
@ -0,0 +1,58 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, docopt
|
||||
, pytz
|
||||
, requests
|
||||
, setuptools
|
||||
, vincenty
|
||||
, xmltodict
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "buienradar";
|
||||
version = "1.0.4";
|
||||
|
||||
disabled = pythonOlder "3.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mjj4791";
|
||||
repo = "python-buienradar";
|
||||
rev = version;
|
||||
sha256 = "1s0m5x7wdvzzsm797lh6531k614ybh7z0cikxjxqw377mivpz4wq";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
docopt
|
||||
pytz
|
||||
requests
|
||||
setuptools
|
||||
vincenty
|
||||
xmltodict
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# require network connection
|
||||
"test_rain_data"
|
||||
"test_json_data"
|
||||
"test_xml_data"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"buienradar.buienradar"
|
||||
"buienradar.constants"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library and CLI tools for interacting with buienradar";
|
||||
homepage = "https://github.com/mjj4791/python-buienradar";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
28
pkgs/development/python-modules/vincenty/default.nix
Normal file
28
pkgs/development/python-modules/vincenty/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "vincenty";
|
||||
version = "0.1.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "maurycyp";
|
||||
repo = "vincenty";
|
||||
rev = version;
|
||||
sha256 = "1li8gv0zb1pdbxdybgaykm38lqbkb5dr7rph6zs1k4k3sh15ldw3";
|
||||
};
|
||||
|
||||
# no tests implemented
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "vincenty" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Calculate the geographical distance between 2 points with extreme accuracy";
|
||||
homepage = "https://github.com/maurycyp/vincenty";
|
||||
license = licenses.unlicense;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
|
@ -106,7 +106,7 @@
|
|||
"bsblan" = ps: with ps; [ bsblan ];
|
||||
"bt_home_hub_5" = ps: with ps; [ ]; # missing inputs: bthomehub5-devicelist
|
||||
"bt_smarthub" = ps: with ps; [ ]; # missing inputs: btsmarthub_devicelist
|
||||
"buienradar" = ps: with ps; [ ]; # missing inputs: buienradar
|
||||
"buienradar" = ps: with ps; [ buienradar ];
|
||||
"caldav" = ps: with ps; [ caldav ];
|
||||
"calendar" = ps: with ps; [ aiohttp-cors ];
|
||||
"camera" = ps: with ps; [ aiohttp-cors ];
|
||||
|
|
|
@ -313,6 +313,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"broadlink"
|
||||
"brother"
|
||||
"bsblan"
|
||||
"buienradar"
|
||||
"caldav"
|
||||
"calendar"
|
||||
"camera"
|
||||
|
|
|
@ -1192,6 +1192,8 @@ in {
|
|||
|
||||
bugzilla = callPackage ../development/python-modules/bugzilla { };
|
||||
|
||||
buienradar = callPackage ../development/python-modules/buienradar { };
|
||||
|
||||
buildbot = callPackage ../development/python-modules/buildbot { };
|
||||
|
||||
buildbot-ui = self.buildbot.withPlugins (with self.buildbot-plugins; [ www ]);
|
||||
|
@ -8777,6 +8779,8 @@ in {
|
|||
|
||||
viewstate = callPackage ../development/python-modules/viewstate { };
|
||||
|
||||
vincenty = callPackage ../development/python-modules/vincenty { };
|
||||
|
||||
vine = callPackage ../development/python-modules/vine { };
|
||||
|
||||
virtkey = callPackage ../development/python-modules/virtkey { };
|
||||
|
|
Loading…
Reference in a new issue