Big cleanup ദ്ദി^._.^)

This commit is contained in:
2023-08-29 18:32:49 +02:00
parent 6ab66771f2
commit c25e5cec27
49 changed files with 597 additions and 10337 deletions

View File

@@ -1,38 +1,20 @@
{ lib, python3Packages, fetchFromGitHub
, conf ? ../conf.py
{ lib
, python3Packages
, fetchFromGitHub
}:
python3Packages.buildPythonApplication {
pname = "dibbler";
version = "unstable-2021-09-07";
format = "other";
src = lib.cleanSource ../.;
format = "pyproject";
nativeBuildInputs = with python3Packages; [ setuptools ];
propagatedBuildInputs = with python3Packages; [
brother-ql
sqlalchemy
matplotlib
psycopg2
python-barcode
sqlalchemy
];
preInstall = ''
libdir=$out/lib/${python3Packages.python.libPrefix}/site-packages
mkdir -p $out/bin $libdir
'';
installPhase = ''
runHook preInstall
libdir=$out/lib/${python3Packages.python.libPrefix}/site-packages
mv * $libdir
cp ${conf} $libdir/
mv $libdir/text_based.py $out/bin/dibbler
runHook postInstall
'';
}