summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-obfuscator/default.nix
blob: 4f1a8cba456eb43389cc805e92b6dd6dabadbe59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  regex,
  setuptools,
}:

buildPythonPackage rec {
  pname = "python-obfuscator";
  version = "0.0.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "davidteather";
    repo = "python-obfuscator";
    tag = "V${version}";
    hash = "sha256-LUD+9vNd1sdigbKG2tm5hE3zLtmor/2LqsIarUWS2Ek=";
  };

  build-system = [ setuptools ];

  dependencies = [ regex ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "python_obfuscator" ];

  meta = {
    description = "Module to obfuscate code";
    homepage = "https://github.com/davidteather/python-obfuscator";
    changelog = "https://github.com/davidteather/python-obfuscator/releases/tag/${src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}