2022-10-21 18:38:19 +00:00
|
|
|
{ stdenv, lib, isPy3k, buildPythonPackage, fetchFromGitHub, zope_interface, twisted }:
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python3-application";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "3.0.4";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AGProjects";
|
|
|
|
repo = pname;
|
2022-10-21 18:38:19 +00:00
|
|
|
rev = "release-${version}";
|
|
|
|
sha256 = "sha256-XXAKp/RlBVs3KmcnuiexdYfxf0zt2A/DrsJzdC9I4vA=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ zope_interface twisted ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "application" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
2021-09-22 15:38:15 +00:00
|
|
|
description = "A collection of modules that are useful when building python applications";
|
|
|
|
homepage = "https://github.com/AGProjects/python3-application";
|
|
|
|
license = licenses.lgpl21Plus;
|
2022-10-21 18:38:19 +00:00
|
|
|
maintainers = with maintainers; [ chanley yureien ];
|
2021-09-22 15:38:15 +00:00
|
|
|
longDescription = ''
|
|
|
|
This package is a collection of modules that are useful when building python applications. Their purpose is to eliminate the need to divert resources into implementing the small tasks that every application needs to do in order to run successfully and focus instead on the application logic itself.
|
|
|
|
The modules that the application package provides are:
|
|
|
|
1. process - UNIX process and signal management.
|
|
|
|
2. python - python utility classes and functions.
|
|
|
|
3. configuration - a simple interface to handle configuration files.
|
|
|
|
4. log - an extensible system logger for console and syslog.
|
|
|
|
5. debug - memory troubleshooting and execution timing.
|
|
|
|
6. system - interaction with the underlying operating system.
|
|
|
|
7. notification - an application wide notification system.
|
|
|
|
8. version - manage version numbers for applications and packages.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|