depot/third_party/nixpkgs/pkgs/development/tools/misc/itstool/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

43 lines
721 B
Nix

{ stdenv
, lib
, fetchurl
, python3
}:
stdenv.mkDerivation rec {
pname = "itstool";
version = "2.0.7";
src = fetchurl {
url = "http://files.itstool.org/${pname}/${pname}-${version}.tar.bz2";
hash = "sha256-a5p80poSu5VZj1dQ6HY87niDahogf4W3TYsydbJ+h8o=";
};
strictDeps = true;
nativeBuildInputs = [
python3
python3.pkgs.wrapPython
];
buildInputs = [
python3
python3.pkgs.libxml2
];
pythonPath = [
python3.pkgs.libxml2
];
postFixup = ''
wrapPythonPrograms
'';
meta = {
homepage = "https://itstool.org/";
description = "XML to PO and back again";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.all;
maintainers = [ ];
};
}