python3.pkgs.pyimpfuzzy: init at 0.5
commit313681c8fc00b69cc9f9a33599eeedbd37c0d98e
authorCole Helbling <cole.e.helbling@outlook.com>
dateMon 19 Apr 2021, 15:44 (6 years ago)
parentb042c22
pkgs/development/python-modules/pyimpfuzzy/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, ssdeep
5+, pefile
6+}:
7+buildPythonPackage rec {
8+ pname = "pyimpfuzzy";
9+ version = "0.5";
10+
11+ src = fetchPypi {
12+ inherit pname version;
13+ sha256 = "da9796df302db4b04a197128637f84988f1882f1e08fdd69bbf9fdc6cfbaf349";
14+ };
15+
16+ buildInputs = [
17+ ssdeep
18+ ];
19+
20+ propagatedBuildInputs = [
21+ pefile
22+ ];
23+
24+ # no tests
25+ doCheck = false;
26+
27+ pythonImportsCheck = [
28+ "pyimpfuzzy"
29+ ];
30+
31+ meta = with lib; {
32+ description = "A Python module which calculates and compares the impfuzzy (import fuzzy hashing)";
33+ homepage = "https://github.com/JPCERTCC/impfuzzy";
34+ license = licenses.gpl2Only;
35+ maintainers = teams.determinatesystems.members;
36+ };
37+}
pkgs/top-level/python-packages.nix+4
@@ -5954,6 +5954,10 @@ in {
59545954
59555955 PyICU = callPackage ../development/python-modules/pyicu { };
59565956
5957+ pyimpfuzzy = callPackage ../development/python-modules/pyimpfuzzy {
5958+ inherit (pkgs) ssdeep;
5959+ };
5960+
59575961 pyinotify = callPackage ../development/python-modules/pyinotify { };
59585962
59595963 pyinputevent = callPackage ../development/python-modules/pyinputevent { };