python311Packages.flufl-lock: refactor

- add meta.changelog
- use `pyproject = true`
- add pythonImportsCheck
- set disabled python versions
This commit is contained in:
natsukium 2023-11-03 18:28:15 +09:00 committed by Felix Buehler
parent 9e74247757
commit 7934203c37

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
, atpublic, psutil, pytest-cov, sybil
, pdm-pep517
}:
@ -6,7 +6,9 @@
buildPythonPackage rec {
pname = "flufl-lock";
version = "7.1.1";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "flufl.lock";
@ -23,11 +25,19 @@ buildPythonPackage rec {
# relevant to the user.
pytestFlagsArray = [ "--no-cov" ];
pythonImportsCheck = [
"flufl.lock"
];
pythonNamespaces = [
"flufl"
];
meta = with lib; {
homepage = "https://flufllock.readthedocs.io/";
description = "NFS-safe file locking with timeouts for POSIX and Windows";
changelog = "https://gitlab.com/warsaw/flufl.lock/-/blob/${version}/docs/NEWS.rst";
maintainers = with maintainers; [ qyliss ];
license = licenses.asl20;
platforms = platforms.all;
};
}