Merge pull request #44086 from erikarvstedt/paperless
paperless: add package and service
This commit is contained in:
28
pkgs/development/python-modules/djangoql/default.nix
Normal file
28
pkgs/development/python-modules/djangoql/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, python
|
||||
, django, ply }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "djangoql";
|
||||
version = "0.12.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1mwv1ljznj9mn74ncvcyfmj6ygs8xm2rajpxm88gcac9hhdmk5gs";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ ply ];
|
||||
|
||||
checkInputs = [ django ];
|
||||
|
||||
checkPhase = ''
|
||||
export PYTHONPATH=test_project:$PYTHONPATH
|
||||
${python.executable} test_project/manage.py test core.tests
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Advanced search language for Django";
|
||||
homepage = https://github.com/ivelum/djangoql;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ earvstedt ];
|
||||
};
|
||||
}
|
||||
29
pkgs/development/python-modules/filemagic/default.nix
Normal file
29
pkgs/development/python-modules/filemagic/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, file
|
||||
, isPy3k, mock, unittest2 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "filemagic";
|
||||
version = "1.6";
|
||||
|
||||
# Don't use the PyPI source because it's missing files required for testing
|
||||
src = fetchFromGitHub {
|
||||
owner = "aliles";
|
||||
repo = "filemagic";
|
||||
rev = "138649062f769fb10c256e454a3e94ecfbf3017b";
|
||||
sha256 = "1jxf928jjl2v6zv8kdnfqvywdwql1zqkm1v5xn1d5w0qjcg38d4n";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace magic/api.py --replace "ctypes.util.find_library('magic')" \
|
||||
"'${file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}'"
|
||||
'';
|
||||
|
||||
checkInputs = [ (if isPy3k then mock else unittest2) ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "File type identification using libmagic";
|
||||
homepage = https://github.com/aliles/filemagic;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ earvstedt ];
|
||||
};
|
||||
}
|
||||
22
pkgs/development/python-modules/inotify-simple/default.nix
Normal file
22
pkgs/development/python-modules/inotify-simple/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ lib, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "inotify-simple";
|
||||
version = "1.1.8";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "inotify_simple";
|
||||
inherit version;
|
||||
sha256 = "1pfqvnynwh318cakldhg7535kbs02asjsgv6s0ki12i7fgfi0b7w";
|
||||
};
|
||||
|
||||
# The package has no tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple Python wrapper around inotify";
|
||||
homepage = https://github.com/chrisjbillington/inotify_simple;
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ earvstedt ];
|
||||
};
|
||||
}
|
||||
21
pkgs/development/python-modules/langdetect/default.nix
Normal file
21
pkgs/development/python-modules/langdetect/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, six }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "langdetect";
|
||||
version = "1.0.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "0c5zm6c7xzsigbb9c7v4r33fcpz911zscfwvh3dq1qxdy3ap18ci";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python port of Google's language-detection library";
|
||||
homepage = https://github.com/Mimino666/langdetect;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ earvstedt ];
|
||||
};
|
||||
}
|
||||
20
pkgs/development/python-modules/pdftotext/default.nix
Normal file
20
pkgs/development/python-modules/pdftotext/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, poppler }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pdftotext";
|
||||
version = "2.1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1jwc2zpss0983wqqi0kpichasljsxar9c4ma8vycn8maw3pi3bg3";
|
||||
};
|
||||
|
||||
buildInputs = [ poppler ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple PDF text extraction";
|
||||
homepage = https://github.com/jalan/pdftotext;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ earvstedt ];
|
||||
};
|
||||
}
|
||||
20
pkgs/development/python-modules/pytest-env/default.nix
Normal file
20
pkgs/development/python-modules/pytest-env/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-env";
|
||||
version = "0.6.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1hl0ln0cicdid4qjk7mv90lw9xkb0v71dlj7q7rn89vzxxm9b53y";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pytest plugin used to set environment variables";
|
||||
homepage = https://github.com/MobileDynasty/pytest-env;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ earvstedt ];
|
||||
};
|
||||
}
|
||||
20
pkgs/development/python-modules/python-dotenv/default.nix
Normal file
20
pkgs/development/python-modules/python-dotenv/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, click, ipython }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-dotenv";
|
||||
version = "0.10.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1q4sp6ppjiqlsz3h43q9iya4n3qkhx6ng16bcbacfxdyrp9xvcf9";
|
||||
};
|
||||
|
||||
checkInputs = [ click ipython ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Add .env support to your django/flask apps in development and deployments";
|
||||
homepage = https://github.com/theskumar/python-dotenv;
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = with maintainers; [ earvstedt ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user