1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
43 lines
881 B
Nix
43 lines
881 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
prompt-toolkit,
|
|
setuptools,
|
|
winacl,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiowinreg";
|
|
version = "0.0.13";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "skelsec";
|
|
repo = "aiowinreg";
|
|
tag = version;
|
|
hash = "sha256-vY5SrGTFH/xsv9k2WciE0xNx9r3W53sxxLGXFX34EuE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
prompt-toolkit
|
|
winacl
|
|
];
|
|
|
|
# Project doesn't have tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "aiowinreg" ];
|
|
|
|
meta = {
|
|
description = "Python module to parse the registry hive";
|
|
homepage = "https://github.com/skelsec/aiowinreg";
|
|
changelog = "https://github.com/skelsec/aiowinreg/releases/tag/${version}";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "awinreg";
|
|
};
|
|
}
|