nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6}:
7
8buildPythonPackage rec {
9 pname = "pefile";
10 version = "2024.8.26";
11 pyproject = true;
12
13 # DON'T fetch from github, the repo is >60 MB due to test artifacts, which we cannot use
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-P/bF2LQ+jDe7bm3VCFZY1linoL3NILagex/PwcTp1jI=";
17 };
18
19 build-system = [ setuptools ];
20
21 # Test data contains proprietary executables and malware, and is therefore encrypted
22 doCheck = false;
23
24 pythonImportsCheck = [ "pefile" ];
25
26 meta = {
27 description = "Multi-platform Python module to parse and work with Portable Executable (aka PE) files";
28 homepage = "https://github.com/erocarrera/pefile";
29 changelog = "https://github.com/erocarrera/pefile/releases/tag/v${version}";
30 license = lib.licenses.mit;
31 maintainers = with lib.maintainers; [ pamplemousse ];
32 };
33}