mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-25 17:30:31 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
46 lines
802 B
Nix
46 lines
802 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, enum-compat
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, unicodecsv
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-registry";
|
|
version = "1.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "williballenthin";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0gwx5jcribgmmbz0ikhz8iphz7yj2d2nmk24nkdrjd3y5irly11s";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
enum-compat
|
|
unicodecsv
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
six
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
"samples"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"Registry"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Pure Python parser for Windows Registry hives";
|
|
homepage = "https://github.com/williballenthin/python-registry";
|
|
license = licenses.asl20;
|
|
maintainers = teams.determinatesystems.members;
|
|
};
|
|
}
|