2023-08-04 22:07:22 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, python3
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "itstool";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "2.0.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-21 07:28:18 +00:00
|
|
|
url = "http://files.itstool.org/${pname}/${pname}-${version}.tar.bz2";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-a5p80poSu5VZj1dQ6HY87niDahogf4W3TYsydbJ+h8o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
python3
|
|
|
|
python3.pkgs.wrapPython
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
python3
|
|
|
|
python3.pkgs.libxml2
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonPath = [
|
|
|
|
python3.pkgs.libxml2
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapPythonPrograms
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://itstool.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "XML to PO and back again";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "itstool";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ ];
|
|
|
|
};
|
|
|
|
}
|