depot/third_party/nixpkgs/pkgs/development/python-modules/dnfile/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

41 lines
903 B
Nix

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