core/pkgs/by-name/it/itstool/default.nix

33 lines
721 B
Nix
Raw Normal View History

2024-05-13 21:24:10 +00:00
{ stdenv, lib, fetchurl, python3 }:
2024-05-02 00:46:19 +00:00
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;
2024-05-13 21:24:10 +00:00
nativeBuildInputs = [ python3 python3.pkgs.wrapPython ];
2024-05-02 00:46:19 +00:00
2024-05-13 21:24:10 +00:00
buildInputs = [ python3 python3.pkgs.libxml2 ];
2024-05-02 00:46:19 +00:00
2024-05-13 21:24:10 +00:00
pythonPath = [ python3.pkgs.libxml2 ];
2024-05-02 00:46:19 +00:00
postFixup = ''
wrapPythonPrograms
'';
meta = {
homepage = "https://itstool.org/";
description = "XML to PO and back again";
mainProgram = "itstool";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.all;
maintainers = [ ];
};
}