depot/third_party/nixpkgs/pkgs/development/python-modules/pefile/default.nix
Default email 634fe97655 Project import generated by Copybara.
GitOrigin-RevId: 09c38c29f2c719cd76ca17a596c2fdac9e186ceb
2021-07-03 00:11:41 -03:00

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