about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2017-11-23 23:53:28 +0100
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-01-30 11:01:05 +0100
commitab02f5400e02fa6e270ca62bbf1398317cbb1a3d (patch)
tree41670c5a809b8f0f0370c3dae2fa124ad3c184ec /pkgs
parentac4f896fc6ce0f879e6b7798a7375f2150544e17 (diff)
downloadnixlib-ab02f5400e02fa6e270ca62bbf1398317cbb1a3d.tar
nixlib-ab02f5400e02fa6e270ca62bbf1398317cbb1a3d.tar.gz
nixlib-ab02f5400e02fa6e270ca62bbf1398317cbb1a3d.tar.bz2
nixlib-ab02f5400e02fa6e270ca62bbf1398317cbb1a3d.tar.lz
nixlib-ab02f5400e02fa6e270ca62bbf1398317cbb1a3d.tar.xz
nixlib-ab02f5400e02fa6e270ca62bbf1398317cbb1a3d.tar.zst
nixlib-ab02f5400e02fa6e270ca62bbf1398317cbb1a3d.zip
astral: init at 1.4
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/astral/default.nix26
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/astral/default.nix b/pkgs/development/python-modules/astral/default.nix
new file mode 100644
index 000000000000..76dba87f9648
--- /dev/null
+++ b/pkgs/development/python-modules/astral/default.nix
@@ -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 ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 272b57298e53..4a581a04efab 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -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 {