depot/third_party/nixpkgs/pkgs/development/python-modules/jxmlease/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

37 lines
749 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, lxml
, python
}:
buildPythonPackage rec {
pname = "jxmlease";
version = "1.0.3";
src = fetchPypi {
inherit pname version;
sha256 = "17l3w3ak07p72s8kv8hg0ilxs0kkxjn7bfwnl3g2cw58v1siab31";
};
propagatedBuildInputs = [
lxml
];
# tests broken in expat bump
# https://github.com/Juniper/jxmlease/issues/26
doCheck = false;
checkPhase = ''
runHook preCheck
${python.interpreter} -m unittest discover -v
runHook postCheck
'';
meta = with lib; {
description = "Converts between XML and intelligent Python data structures";
homepage = "https://github.com/Juniper/jxmlease";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}