1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, boltons
5, attrs
6, face
7, pytest
8, pyyaml
9, isPy37
10}:
11
12buildPythonPackage rec {
13 pname = "glom";
14 version = "19.1.0";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "5c47dc6dc97bb1c20e5607f3d58eac81e13b16880a284b52d503eea92d7b5fc2";
19 };
20
21 propagatedBuildInputs = [ boltons attrs face ];
22
23 checkInputs = [ pytest pyyaml ];
24 checkPhase = "pytest glom/test";
25
26 doCheck = !isPy37; # https://github.com/mahmoud/glom/issues/72
27
28 meta = with stdenv.lib; {
29 homepage = https://github.com/mahmoud/glom;
30 description = "Restructuring data, the Python way";
31 longDescription = ''
32 glom helps pull together objects from other objects in a
33 declarative, dynamic, and downright simple way.
34 '';
35 license = licenses.bsd3;
36 maintainers = with maintainers; [ twey ];
37 };
38}