Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / dnfile / default.nix
blob232927aace707d34bc876b7be39bd032595da0d6
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pefile
5 , pytestCheckHook
6 , pythonOlder
7 , setuptools
8 }:
10 buildPythonPackage rec {
11   pname = "dnfile";
12   version = "0.14.1";
13   format = "pyproject";
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "malwarefrank";
19     repo = "dnfile";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-5xkoG7c9Piwrv+9qour7MZ+rabdngtd05b0T+AU8tSo=";
22     fetchSubmodules = true;
23   };
25   nativeBuildInputs = [
26     setuptools
27   ];
29   propagatedBuildInputs = [
30     pefile
31   ];
33   nativeCheckInputs = [
34     pytestCheckHook
35   ];
37   pythonImportsCheck = [
38     "dnfile"
39   ];
41   meta = with lib; {
42     description = "Module to parse .NET executable files";
43     homepage = "hhttps://github.com/malwarefrank/dnfile";
44     changelog = "https://github.com/malwarefrank/dnfile/blob/v${version}/HISTORY.rst";
45     license = with licenses; [ mit ];
46     maintainers = with maintainers; [ fab ];
47   };