diff --git a/pkgs/development/python-modules/python-obfuscator/default.nix b/pkgs/development/python-modules/python-obfuscator/default.nix index 4f1a8cba456e..af3c6b530e0f 100644 --- a/pkgs/development/python-modules/python-obfuscator/default.nix +++ b/pkgs/development/python-modules/python-obfuscator/default.nix @@ -4,24 +4,30 @@ fetchFromGitHub, pytestCheckHook, regex, - setuptools, + typer, + poetry-core, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "python-obfuscator"; - version = "0.0.2"; + version = "0.1.0"; pyproject = true; src = fetchFromGitHub { owner = "davidteather"; repo = "python-obfuscator"; - tag = "V${version}"; - hash = "sha256-LUD+9vNd1sdigbKG2tm5hE3zLtmor/2LqsIarUWS2Ek="; + tag = "v${finalAttrs.version}"; + hash = "sha256-ddFmlNBtITMPJszLjD2FNjSFF8TrawOv0q7iB3EIdAY="; }; - build-system = [ setuptools ]; + pythonRelaxDeps = [ "typer" ]; - dependencies = [ regex ]; + build-system = [ poetry-core ]; + + dependencies = [ + regex + typer + ]; nativeCheckInputs = [ pytestCheckHook ]; @@ -30,8 +36,8 @@ buildPythonPackage rec { meta = { description = "Module to obfuscate code"; homepage = "https://github.com/davidteather/python-obfuscator"; - changelog = "https://github.com/davidteather/python-obfuscator/releases/tag/${src.tag}"; + changelog = "https://github.com/davidteather/python-obfuscator/releases/tag/v${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})