summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyavm
diff options
context:
space:
mode:
authorSébastien Maret <sebastien.maret@icloud.com>2019-02-25 14:39:24 +0100
committerSébastien Maret <sebastien.maret@icloud.com>2019-03-15 14:41:49 +0100
commit50124a62c8169535ad24bc5f7c71191b88ab7a3a (patch)
tree164761cc1a7c8e2a360af24536d6b23dab82ae1f /pkgs/development/python-modules/pyavm
parentd81b59b027069387fe3e44778e76eadb2f0de604 (diff)
downloadnixpkgs-50124a62c8169535ad24bc5f7c71191b88ab7a3a.tar
nixpkgs-50124a62c8169535ad24bc5f7c71191b88ab7a3a.tar.gz
nixpkgs-50124a62c8169535ad24bc5f7c71191b88ab7a3a.tar.bz2
nixpkgs-50124a62c8169535ad24bc5f7c71191b88ab7a3a.tar.lz
nixpkgs-50124a62c8169535ad24bc5f7c71191b88ab7a3a.tar.xz
nixpkgs-50124a62c8169535ad24bc5f7c71191b88ab7a3a.tar.zst
nixpkgs-50124a62c8169535ad24bc5f7c71191b88ab7a3a.zip
pythonPackages.pyavm: init at 0.9.4
Diffstat (limited to 'pkgs/development/python-modules/pyavm')
-rw-r--r--pkgs/development/python-modules/pyavm/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyavm/default.nix b/pkgs/development/python-modules/pyavm/default.nix
new file mode 100644
index 00000000000..2279f792818
--- /dev/null
+++ b/pkgs/development/python-modules/pyavm/default.nix
@@ -0,0 +1,37 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pytest
+, astropy
+, astropy-helpers
+, pillow
+}:
+
+buildPythonPackage rec {
+  pname = "pyavm";
+  version = "0.9.4";
+
+  src = fetchPypi {
+    pname = "PyAVM";
+    inherit version;
+    sha256 = "f298b864e5bc101ecbb0e46252e95e18a180ac28ba6ec362e63c12a7e914e386";
+  };
+
+  propagatedBuildInputs = [ astropy-helpers ];
+
+  checkInputs = [ pytest astropy pillow ];
+
+  checkPhase = "pytest";
+
+  # Disable automatic update of the astropy-helper module
+  postPatch = ''
+    substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
+  '';
+
+  meta = with lib; {
+    description = "Simple pure-python AVM meta-data handling";
+    homepage = http://astrofrog.github.io/pyavm/;
+    license = licenses.mit;
+    maintainers = [ maintainers.smaret ];
+  };
+}