1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 02:46:28 +00:00
nixpkgs/pkgs/development/python-modules/odfpy/default.nix

30 lines
585 B
Nix
Raw Normal View History

2017-08-25 09:40:49 +01:00
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "odfpy";
2017-12-30 11:25:08 +00:00
version = "1.3.6";
2017-08-25 09:40:49 +01:00
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
2017-12-30 11:25:08 +00:00
sha256 = "6bcaf3b23aa9e49ed8c8c177266539b211add4e02402748a994451482a10cb1b";
2017-08-25 09:40:49 +01:00
};
checkPhase = ''
pushd tests
rm runtests
for file in test*.py; do
python $file
done
'';
meta = {
description = "Python API and tools to manipulate OpenDocument files";
homepage = "https://joinup.ec.europa.eu/software/odfpy/home";
license = lib.licenses.asl20;
};
}