Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 585 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4}: 5 6buildPythonPackage rec { 7 pname = "odfpy"; 8 version = "1.3.5"; 9 name = "${pname}-${version}"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "6f8163f8464868cff9421a058f25566e41d73c8f7e849c021b86630941b44366"; 14 }; 15 16 checkPhase = '' 17 pushd tests 18 rm runtests 19 for file in test*.py; do 20 python $file 21 done 22 ''; 23 24 meta = { 25 description = "Python API and tools to manipulate OpenDocument files"; 26 homepage = "https://joinup.ec.europa.eu/software/odfpy/home"; 27 license = lib.licenses.asl20; 28 }; 29}