pyproject.toml: set package version, fix nix package

This commit is contained in:
2026-01-06 14:09:38 +09:00
parent 634716956e
commit f4b5e1d6d4
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -2,9 +2,12 @@
, python3Packages , python3Packages
, fetchFromGitHub , fetchFromGitHub
}: }:
let
pyproject = builtins.fromTOML (builtins.readFile ../pyproject.toml);
in
python3Packages.buildPythonApplication { python3Packages.buildPythonApplication {
pname = "dibbler"; pname = pyproject.project.name;
version = "unstable"; version = pyproject.project.version;
src = lib.cleanSource ../.; src = lib.cleanSource ../.;
format = "pyproject"; format = "pyproject";
+1 -1
View File
@@ -4,6 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "dibbler" name = "dibbler"
version = "1.0.0"
authors = [] authors = []
description = "EDB-system for PVV" description = "EDB-system for PVV"
readme = "README.md" readme = "README.md"
@@ -18,7 +19,6 @@ dependencies = [
"psycopg2 >= 2.8, <2.10", "psycopg2 >= 2.8, <2.10",
"python-barcode", "python-barcode",
] ]
dynamic = ["version"]
[tool.setuptools.packages.find] [tool.setuptools.packages.find]
include = ["dibbler*"] include = ["dibbler*"]