about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pefile/default.nix
blob: 97b3419d7b55d8fa2c0551a0bba90d0c8b4998d5 (plain) (blame)
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
34
35
36
37
38
39
40
41
42
43
44
{ lib
, buildPythonPackage
, future
, fetchPypi
, setuptools-scm
, pythonOlder
}:

buildPythonPackage rec {
  pname = "pefile";
  version = "2023.2.7";
  format = "setuptools";

  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-guYRQASz1pEcd8OVPjg4ZUsEURuLZuhYPbcMZZmAF9w=";
  };

  nativeBuildInputs = [
    setuptools-scm
  ];

  propagatedBuildInputs = [
    future
  ];

  # 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 ];
  };
}