diff --git a/nix/dibbler.nix b/nix/dibbler.nix index 24dc21d..40f4aff 100644 --- a/nix/dibbler.nix +++ b/nix/dibbler.nix @@ -2,9 +2,12 @@ , python3Packages , fetchFromGitHub }: +let + pyproject = builtins.fromTOML (builtins.readFile ../pyproject.toml); +in python3Packages.buildPythonApplication { - pname = "dibbler"; - version = "unstable"; + pname = pyproject.project.name; + version = pyproject.project.version; src = lib.cleanSource ../.; format = "pyproject"; diff --git a/pyproject.toml b/pyproject.toml index 3179a6f..b6eb75e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,6 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "dibbler" +version = "1.0.0" authors = [] description = "EDB-system for PVV" readme = "README.md" @@ -18,7 +19,6 @@ dependencies = [ "psycopg2 >= 2.8, <2.10", "python-barcode", ] -dynamic = ["version"] [tool.setuptools.packages.find] include = ["dibbler*"]