Big cleanup ദ്ദി^._.^)
This commit is contained in:
@@ -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
|
||||
'';
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user