Files
nixpkgs/pkgs/development/python-modules/dnfile/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

42 lines
880 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pefile,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "dnfile";
version = "0.17.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "malwarefrank";
repo = "dnfile";
tag = "v${version}";
hash = "sha256-JiJ7qvBP0SDGMynQuu2AyCwHU9aDI7Pq5/Z9IiWPWng=";
fetchSubmodules = true;
};
build-system = [ setuptools ];
dependencies = [ pefile ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "dnfile" ];
meta = {
description = "Module to parse .NET executable files";
homepage = "https://github.com/malwarefrank/dnfile";
changelog = "https://github.com/malwarefrank/dnfile/blob/${src.tag}/HISTORY.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}