dibbler/nix/dibbler.nix

39 lines
698 B
Nix
Raw Normal View History

{ lib, python3Packages, fetchFromGitHub
, conf ? ../conf.py
}:
2021-09-07 13:07:25 +02:00
python3Packages.buildPythonApplication {
pname = "dibbler";
version = "unstable-2021-09-07";
format = "other";
src = lib.cleanSource ../.;
propagatedBuildInputs = with python3Packages; [
brother-ql
sqlalchemy
psycopg2
python-barcode
];
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/
2021-09-07 13:07:25 +02:00
mv $libdir/text_based.py $out/bin/dibbler
2021-09-07 13:07:25 +02:00
runHook postInstall
'';
}