2021-07-03 03:11:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, future
|
2021-07-03 03:11:41 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools-scm
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pefile";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "2021.9.2";
|
2021-07-03 03:11:41 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "erocarrera";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "1pgsw84i9r6ydkfzqifgl5lvcz3cf3xz5c2543kl3q8mgb21wxaz";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
future
|
|
|
|
];
|
|
|
|
|
|
|
|
# Test data encrypted
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pefile" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Multi-platform Python module to parse and work with Portable Executable (aka PE) files";
|
|
|
|
homepage = "https://github.com/erocarrera/pefile";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.pamplemousse ];
|
|
|
|
};
|
|
|
|
}
|