summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pefile/default.nix
blob: 02358bb82dc8e1f9b032dc5575ddba7a026a13eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pefile";
  version = "2024.8.26";
  pyproject = true;

  # 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 proprietary executables and malware, and is therefore encrypted
  doCheck = false;

  pythonImportsCheck = [ "pefile" ];

  meta = {
    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 = lib.licenses.mit;
    maintainers = with lib.maintainers; [ pamplemousse ];
  };
}