depot/third_party/nixpkgs/pkgs/development/python-modules/pefile/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

36 lines
944 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pefile";
version = "2024.8.26";
pyproject = true;
disabled = pythonOlder "3.6";
# 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-P/bF2LQ+jDe7bm3VCFZY1linoL3NILagex/PwcTp1jI=";
};
build-system = [ setuptools ];
# Test data contains properitary executables and malware, and is therefore encrypted
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";
changelog = "https://github.com/erocarrera/pefile/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ pamplemousse ];
};
}