depot/third_party/nixpkgs/pkgs/development/python-modules/python-didl-lite/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

35 lines
735 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
, defusedxml
, pytest }:
buildPythonPackage rec {
pname = "python-didl-lite";
version = "1.2.4";
disabled = pythonOlder "3.5.3";
src = fetchFromGitHub {
owner = "StevenLooman";
repo = pname;
rev = version;
sha256 = "0jf1d5m4r8qd3pn0hh1xqbkblkx9wzrrcmk7qa7q8lzfysp4z217";
};
propagatedBuildInputs = [
defusedxml
];
checkInputs = [
pytest
];
checkPhase = ''
py.test
'';
meta = with lib; {
description = "DIDL-Lite (Digital Item Declaration Language) tools for Python";
homepage = "https://github.com/StevenLooman/python-didl-lite";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}