Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 future, 5 fetchPypi, 6 setuptools-scm, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "pefile"; 12 version = "2023.2.7"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 # DON'T fetch from github, the repo is >60 MB due to test artifacts, which we cannot use 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-guYRQASz1pEcd8OVPjg4ZUsEURuLZuhYPbcMZZmAF9w="; 21 }; 22 23 nativeBuildInputs = [ setuptools-scm ]; 24 25 propagatedBuildInputs = [ future ]; 26 27 # Test data contains properitary executables and malware, and is therefore encrypted 28 doCheck = false; 29 30 pythonImportsCheck = [ "pefile" ]; 31 32 meta = with lib; { 33 description = "Multi-platform Python module to parse and work with Portable Executable (aka PE) files"; 34 homepage = "https://github.com/erocarrera/pefile"; 35 changelog = "https://github.com/erocarrera/pefile/releases/tag/v${version}"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ pamplemousse ]; 38 }; 39}