1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 regex,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "python-obfuscator";
12 version = "0.0.2";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "davidteather";
17 repo = "python-obfuscator";
18 tag = "V${version}";
19 hash = "sha256-LUD+9vNd1sdigbKG2tm5hE3zLtmor/2LqsIarUWS2Ek=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ regex ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "python_obfuscator" ];
29
30 meta = {
31 description = "Module to obfuscate code";
32 homepage = "https://github.com/davidteather/python-obfuscator";
33 changelog = "https://github.com/davidteather/python-obfuscator/releases/tag/${src.tag}";
34 license = lib.licenses.mit;
35 maintainers = with lib.maintainers; [ fab ];
36 };
37}