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