summary refs log tree commit diff
path: root/pkgs/development/python-modules/glom
diff options
context:
space:
mode:
authorJames Kay <james@hadean.com>2018-12-31 17:05:32 +0000
committerworldofpeace <worldofpeace@users.noreply.github.com>2019-01-08 14:43:28 -0500
commit7cd403e33128b7fc029454b7345f5768b2d04cc1 (patch)
tree479b60b240ef9aba690a62aa642766043d7cad75 /pkgs/development/python-modules/glom
parenta5a6b8eaa2e78df3955dc1c2e0f6d655b056a3c8 (diff)
downloadnixpkgs-7cd403e33128b7fc029454b7345f5768b2d04cc1.tar
nixpkgs-7cd403e33128b7fc029454b7345f5768b2d04cc1.tar.gz
nixpkgs-7cd403e33128b7fc029454b7345f5768b2d04cc1.tar.bz2
nixpkgs-7cd403e33128b7fc029454b7345f5768b2d04cc1.tar.lz
nixpkgs-7cd403e33128b7fc029454b7345f5768b2d04cc1.tar.xz
nixpkgs-7cd403e33128b7fc029454b7345f5768b2d04cc1.tar.zst
nixpkgs-7cd403e33128b7fc029454b7345f5768b2d04cc1.zip
pythonPackages.glom: init at 18.4.0
Diffstat (limited to 'pkgs/development/python-modules/glom')
-rw-r--r--pkgs/development/python-modules/glom/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/glom/default.nix b/pkgs/development/python-modules/glom/default.nix
new file mode 100644
index 00000000000..f24dd2b7249
--- /dev/null
+++ b/pkgs/development/python-modules/glom/default.nix
@@ -0,0 +1,38 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, boltons
+, attrs
+, face
+, pytest
+, pyyaml
+, isPy37
+}:
+
+buildPythonPackage rec {
+  pname = "glom";
+  version = "18.4.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0rfikq27a9wwfkd4k3bk7x4fssw6r7z138g9i3wpzvjc7anlzk24";
+  };
+
+  propagatedBuildInputs = [ boltons attrs face ];
+
+  checkInputs = [ pytest pyyaml ];
+  checkPhase = "pytest glom/test";
+
+  doCheck = !isPy37; # https://github.com/mahmoud/glom/issues/72
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/mahmoud/glom;
+    description = "Restructuring data, the Python way";
+    longDescription = ''
+      glom helps pull together objects from other objects in a
+      declarative, dynamic, and downright simple way.
+    '';
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ twey ];
+  };
+}