nixpkgs/pkgs/development/python-modules/pefile/default.nix
2021-06-30 12:13:34 -07:00

41 lines
805 B
Nix

{ lib
, buildPythonPackage
, future
, fetchFromGitHub
, setuptools-scm
, pythonOlder
}:
buildPythonPackage rec {
pname = "pefile";
version = "2021.5.24";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "erocarrera";
repo = pname;
rev = "v${version}";
sha256 = "0qdy88dvy29ixsyfqdcvf3w6rz09vpimk0568i09v1ayhs52p62k";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
future
];
# Test data 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";
license = licenses.mit;
maintainers = [ maintainers.pamplemousse ];
};
}