depot/third_party/nixpkgs/pkgs/development/python-modules/python-daemon/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

72 lines
1.4 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, docutils
, lockfile
, pytestCheckHook
, testscenarios
, testtools
, twine
, python
, pythonOlder
, fetchpatch
}:
buildPythonPackage rec {
pname = "python-daemon";
version = "3.0.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-bFdFI3L36v9Ak0ocA60YJr9eeTVY6H/vSRMeZGS02uU=";
};
nativeBuildInputs = [
twine
];
propagatedBuildInputs = [
docutils
lockfile
];
nativeCheckInputs = [
pytestCheckHook
testscenarios
testtools
];
disabledTests = [
"begin_with_TestCase"
"changelog_TestCase"
"ChangeLogEntry"
"DaemonContext"
"file_descriptor"
"get_distribution_version_info_TestCase"
"InvalidFormatError_TestCase"
"make_year_range_TestCase"
"ModuleExceptions_TestCase"
"test_metaclass_not_called"
"test_passes_specified_object"
"test_returns_expected"
"value_TestCase"
"YearRange_TestCase"
];
pythonImportsCheck = [
"daemon"
"daemon.daemon"
"daemon.pidfile"
];
meta = with lib; {
description = "Library to implement a well-behaved Unix daemon process";
homepage = "https://pagure.io/python-daemon/";
# See "Copying" section in https://pagure.io/python-daemon/blob/main/f/README
license = with licenses; [ gpl3Plus asl20 ];
maintainers = with maintainers; [ ];
};
}