depot/third_party/nixpkgs/pkgs/development/python-modules/python-registry/default.nix

48 lines
996 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
unicodecsv,
pythonOlder,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "python-registry";
version = "1.4";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "williballenthin";
repo = "python-registry";
rev = "refs/tags/${version}";
hash = "sha256-OgRPcyx+NJnbtETMakUT0p8Pb0Qfzgj+qvWtmJksnT8=";
};
pythonRemoveDeps = [ "enum-compat" ];
build-system = [ setuptools ];
dependencies = [ unicodecsv ];
nativeCheckInputs = [
pytestCheckHook
six
];
disabledTestPaths = [ "samples" ];
pythonImportsCheck = [ "Registry" ];
meta = with lib; {
description = "Module to parse the Windows Registry hives";
homepage = "https://github.com/williballenthin/python-registry";
changelog = "https://github.com/williballenthin/python-registry/releases/tag/${version}";
license = licenses.asl20;
maintainers = [ ];
};
}