at 22.05-pre 840 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, boltons 5, attrs 6, face 7, pytest 8, pyyaml 9}: 10 11buildPythonPackage rec { 12 pname = "glom"; 13 version = "20.11.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "54051072bccc9cdb3ebbd8af0559195137a61d308f04bff19678e4b61350eb12"; 18 }; 19 20 propagatedBuildInputs = [ boltons attrs face ]; 21 22 checkInputs = [ pytest pyyaml ]; 23 # test_cli.py checks the output of running "glom" 24 checkPhase = "PATH=$out/bin:$PATH pytest glom/test"; 25 26 meta = with lib; { 27 homepage = "https://github.com/mahmoud/glom"; 28 description = "Restructuring data, the Python way"; 29 longDescription = '' 30 glom helps pull together objects from other objects in a 31 declarative, dynamic, and downright simple way. 32 ''; 33 license = licenses.bsd3; 34 maintainers = with maintainers; [ twey ]; 35 }; 36}