2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
future,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools-scm,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pefile";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "2023.2.7";
|
2022-06-26 10:26:21 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# DON'T fetch from github, the repo is >60 MB due to test artifacts, which we cannot use
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-guYRQASz1pEcd8OVPjg4ZUsEURuLZuhYPbcMZZmAF9w=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2021-07-03 03:11:41 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ future ];
|
2021-07-03 03:11:41 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# Test data contains properitary executables and malware, and is therefore encrypted
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pefile" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Multi-platform Python module to parse and work with Portable Executable (aka PE) files";
|
|
|
|
homepage = "https://github.com/erocarrera/pefile";
|
2023-02-16 17:41:37 +00:00
|
|
|
changelog = "https://github.com/erocarrera/pefile/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2022-06-26 10:26:21 +00:00
|
|
|
maintainers = with maintainers; [ pamplemousse ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|