Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pefile / default.nix
blob55bd8c0cc07d333c0e5b4ef2c407b44e63006fca
1 { lib
2 , buildPythonPackage
3 , future
4 , fetchFromGitHub
5 , setuptools-scm
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "pefile";
11   version = "2023.2.7";
12   format = "setuptools";
14   disabled = pythonOlder "3.6";
16   src = fetchFromGitHub {
17     owner = "erocarrera";
18     repo = pname;
19     rev = "refs/tags/v${version}";
20     hash = "sha256-lD8GpNl+cVNYTZUKFRF1/2kDwEbn/ekRBNBTYuFmFW0=";
21   };
23   nativeBuildInputs = [
24     setuptools-scm
25   ];
27   propagatedBuildInputs = [
28     future
29   ];
31   # Test data encrypted
32   doCheck = false;
34   pythonImportsCheck = [
35     "pefile"
36   ];
38   meta = with lib; {
39     description = "Multi-platform Python module to parse and work with Portable Executable (aka PE) files";
40     homepage = "https://github.com/erocarrera/pefile";
41     changelog = "https://github.com/erocarrera/pefile/releases/tag/v${version}";
42     license = licenses.mit;
43     maintainers = with maintainers; [ pamplemousse ];
44   };