Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 30 lines 545 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, defusedxml 5, pytest 6}: 7 8buildPythonPackage rec { 9 pname = "odfpy"; 10 version = "1.4.0"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "596021f0519623ca8717331951c95e3b8d7b21e86edc7efe8cb650a0d0f59a2b"; 15 }; 16 17 propagatedBuildInputs = [ defusedxml ]; 18 19 checkInputs = [ pytest ]; 20 21 checkPhase = '' 22 pytest 23 ''; 24 25 meta = { 26 description = "Python API and tools to manipulate OpenDocument files"; 27 homepage = https://github.com/eea/odfpy; 28 license = lib.licenses.asl20; 29 }; 30}