nixpkgs/pkgs/development/python-modules/python-didl-lite/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

38 lines
763 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, defusedxml
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "python-didl-lite";
version = "1.3.2";
disabled = pythonOlder "3.5.3";
src = fetchFromGitHub {
owner = "StevenLooman";
repo = pname;
rev = version;
hash = "sha256-laKmWGDEzlBVJCUSKxekjPEXVlAz4MIzM7dNJfta/ek=";
};
propagatedBuildInputs = [
defusedxml
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "didl_lite" ];
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 ];
};
}