kjhkjhkjh #10

Open
pederbs wants to merge 3 commits from kjhkjhkjh into master
6 changed files with 27 additions and 18 deletions
Showing only changes of commit e1605aab29 - Show all commits

2
.gitignore vendored
View File

@ -1,5 +1,7 @@
result
result-*
.direnv
.devenv
dist

View File

@ -20,11 +20,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1693145325,
"narHash": "sha256-Gat9xskErH1zOcLjYMhSDBo0JTBZKfGS0xJlIRnj6Rc=",
"owner": "NixOS",
"lastModified": 1731611831,
"narHash": "sha256-R51rOqkWMfubBkZ9BY4Y1VaRoeqEBshlfQ8mMH5RjqI=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "cddebdb60de376c1bdb7a4e6ee3d98355453fe56",
"rev": "cea28c811faadb50bee00d433bbf2fea845a43e4",
"type": "github"
},
"original": {

View File

@ -9,9 +9,7 @@
in {
packages = {
default = self.packages.${system}.dibbler;
dibbler = pkgs.callPackage ./nix/dibbler.nix {
python3Packages = pkgs.python311Packages;
};
dibbler = pkgs.python311Packages.callPackage ./nix/dibbler.nix { };
};
apps = {

View File

@ -1,17 +1,24 @@
{ lib
, python3Packages
, fetchFromGitHub
, buildPythonApplication
, setuptools
, brother-ql
, matplotlib
, psycopg2
, python-barcode
, sqlalchemy
}:
python3Packages.buildPythonApplication {
buildPythonApplication {
pname = "dibbler";
version = "unstable-2021-09-07";
version = "0-unstable-2021-09-07";
pyproject = true;
src = lib.cleanSource ../.;
format = "pyproject";
nativeBuildInputs = with python3Packages; [ setuptools ];
propagatedBuildInputs = with python3Packages; [
brother-ql
built-system = [ setuptools ];
dependencies = [
brother-ql#-next
matplotlib
psycopg2
python-barcode

View File

@ -23,7 +23,10 @@ in {
group = "dibbler";
extraGroups = [ "lp" ];
isNormalUser = true;
shell = ((pkgs.writeShellScriptBin "login-shell" "${screen} -x dibbler") // {shellPath = "/bin/login-shell";});
shell = (
(pkgs.writeShellScriptBin "login-shell" "${screen} -x dibbler")
// {shellPath = "/bin/login-shell";}
);
};
};

View File

@ -14,7 +14,7 @@ classifiers = [
]
dependencies = [
"SQLAlchemy >= 2.0, <2.1",
"brother-ql",
"brother_ql_next",
"matplotlib",
"psycopg2 >= 2.8, <2.10",
"python-barcode",
@ -32,4 +32,3 @@ line-length = 100
[tool.ruff]
line-length = 100