Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/maintainers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@
fadenb = "Tristan Helmich <tristan.helmich+nixos@gmail.com>";
falsifian = "James Cook <james.cook@utoronto.ca>";
fare = "Francois-Rene Rideau <fahree@gmail.com>";
f-breidenstein = "Felix Breidenstein <mail@felixbreidenstein.de>";
fgaz = "Francesco Gazzetta <francygazz@gmail.com>";
FireyFly = "Jonas Höglund <nix@firefly.nu>";
flokli = "Florian Klink <flokli@flokli.de>";
Expand Down
26 changes: 26 additions & 0 deletions pkgs/development/python-modules/astral/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ stdenv, buildPythonPackage, fetchPypi, pytz, pytest }:

buildPythonPackage rec {
pname = "astral";
version = "1.4";

src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "1zm1ypc6w279gh7lbgsfbzfxk2x4gihlq3rfh59hj70hmhjwiwp7";
};

propagatedBuildInputs = [ pytz ];

checkInputs = [ pytest ];
checkPhase = ''
py.test -k "not test_GoogleLocator"
'';

meta = with stdenv.lib; {
description = "Calculations for the position of the sun and the moon";
homepage = https://github.com/sffjunkie/astral/;
license = licenses.asl20;
maintainers = with maintainers; [ flokli ];
};
}
24 changes: 24 additions & 0 deletions pkgs/development/python-modules/vincenty/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ stdenv, fetchPypi, buildPythonPackage }:

buildPythonPackage rec {
version = "0.1.4";
pname = "vincenty";

src = fetchPypi {
inherit version pname;
sha256 = "0nkqhbhrqar4jab7rvxfyjh2sh8d9v6ir861f6yrqdjzhggg58pa";
};

# Project does not have any tests
doCheck = false;

meta = with stdenv.lib; {
homepage = https://github.com/maurycyp/vincenty/;
description = " Calculate the geographical distance between 2 points with extreme accuracy";
license = licenses.unlicense;
platforms = platforms.linux;
maintainers = with maintainers; [ f-breidenstein ];
};
}


37 changes: 37 additions & 0 deletions pkgs/servers/home-assistant/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{ stdenv, fetchFromGitHub, fetchurl, python3Packages, git, nmap }:

python3Packages.buildPythonApplication rec {
version = "0.60.1";
pname = "homeassistant";

src = fetchFromGitHub {
owner = "home-assistant";
repo = "home-assistant";
rev = version;
sha256 = "164a87dh4zxw1a5nmlgwjc1nls0d4jjhdy5pzz43pgnwhhflbph3";
};

postPatch = ''
sed -i 's/yarl==/yarl>=/' setup.py
sed -i 's/aiohttp==/aiohttp>=/' setup.py
'';

propagatedBuildInputs = with python3Packages; [ astral certifi netifaces pip vincenty webcolors pyyaml yarl
aiohttp-cors voluptuous async-timeout requests aiohttp jinja2
pytz chardet setuptools_scm typing git nmap ];


#checkInputs = [ python3Packages.pytest python3Packages.sqlalchemy ];
# Disable tests for now due to many failing checks caused by network and fs access
doCheck = false;

meta = with stdenv.lib; {
homepage = https://home-assistant.io/;
description = "An open-source home automation platform running on Python 3";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ f-breidenstein ];
};
}


2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11851,6 +11851,8 @@ with pkgs;

hbase = callPackage ../servers/hbase {};

home-assistant = callPackage ../servers/home-assistant { };

hiawatha = callPackage ../servers/http/hiawatha {};

ircdHybrid = callPackage ../servers/irc/ircd-hybrid { };
Expand Down
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ in {

asn1crypto = callPackage ../development/python-modules/asn1crypto { };

astral = callPackage ../development/python-modules/astral { };

astropy = callPackage ../development/python-modules/astropy { };

augeas = callPackage ../development/python-modules/augeas {
Expand Down Expand Up @@ -22591,6 +22593,8 @@ EOF

vine = callPackage ../development/python-modules/vine { };

vincenty = callPackage ../development/python-modules/vincenty { };

wp_export_parser = buildPythonPackage rec {
name = "${pname}-${version}";
pname = "wp_export_parser";
Expand Down