1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pefile 5, pytestCheckHook 6, pythonOlder 7, setuptools 8}: 9 10buildPythonPackage rec { 11 pname = "dnfile"; 12 version = "0.14.1"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "malwarefrank"; 19 repo = "dnfile"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-5xkoG7c9Piwrv+9qour7MZ+rabdngtd05b0T+AU8tSo="; 22 fetchSubmodules = true; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 ]; 28 29 propagatedBuildInputs = [ 30 pefile 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ 38 "dnfile" 39 ]; 40 41 meta = with lib; { 42 description = "Module to parse .NET executable files"; 43 homepage = "hhttps://github.com/malwarefrank/dnfile"; 44 changelog = "https://github.com/malwarefrank/dnfile/blob/v${version}/HISTORY.rst"; 45 license = with licenses; [ mit ]; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}