paperless-asn-qr-codes/flake.nix

35 lines
960 B
Nix
Raw Permalink Normal View History

{
description = "Command line utility for generating ASN labels for paperless with both a human-readable representation, as well as a QR code for machine consumption.";
inputs = {
pyproject-nix = {
url = "github:nix-community/pyproject.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, pyproject-nix, ... }:
let
project = pyproject-nix.lib.project.loadPyproject {
projectRoot = ./.;
};
pkgs = nixpkgs.legacyPackages.x86_64-linux;
python = pkgs.python3;
in
{
devShells.x86_64-linux.default =
let
arg = project.renderers.withPackages { inherit python; };
pythonEnv = python.withPackages arg;
in
pkgs.mkShell { packages = [ pythonEnv ]; };
packages.x86_64-linux.default =
let
2024-08-26 19:22:52 +02:00
attrs = project.renderers.buildPythonPackage { inherit python; } // { version = "0.4.0"; };
in
python.pkgs.buildPythonPackage attrs;
};
}