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 = "20.8.0";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "5fa3a9d99c7f3e5410a810fa8a158c0f71e39036c47b77745c7f2e4630372f82";
19 };
20
21 propagatedBuildInputs = [ boltons attrs face ];
22
23 checkInputs = [ pytest pyyaml ];
24 # test_cli.py checks the output of running "glom"
25 checkPhase = "PATH=$out/bin:$PATH pytest glom/test";
26
27 meta = with stdenv.lib; {
28 homepage = "https://github.com/mahmoud/glom";
29 description = "Restructuring data, the Python way";
30 longDescription = ''
31 glom helps pull together objects from other objects in a
32 declarative, dynamic, and downright simple way.
33 '';
34 license = licenses.bsd3;
35 maintainers = with maintainers; [ twey ];
36 };
37}