1{ lib 2, buildPythonPackage 3, future 4, fetchFromGitHub 5, setuptools-scm 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "pefile"; 11 version = "2023.2.7"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "erocarrera"; 18 repo = pname; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-lD8GpNl+cVNYTZUKFRF1/2kDwEbn/ekRBNBTYuFmFW0="; 21 }; 22 23 nativeBuildInputs = [ 24 setuptools-scm 25 ]; 26 27 propagatedBuildInputs = [ 28 future 29 ]; 30 31 # Test data encrypted 32 doCheck = false; 33 34 pythonImportsCheck = [ 35 "pefile" 36 ]; 37 38 meta = with lib; { 39 description = "Multi-platform Python module to parse and work with Portable Executable (aka PE) files"; 40 homepage = "https://github.com/erocarrera/pefile"; 41 changelog = "https://github.com/erocarrera/pefile/releases/tag/v${version}"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ pamplemousse ]; 44 }; 45}