Skip to content

Commit

Permalink
python311Packages.flufl-lock: refactor
Browse files Browse the repository at this point in the history
- add meta.changelog
- use `pyproject = true`
- add pythonImportsCheck
- set disabled python versions
  • Loading branch information
natsukium authored and Stunkymonkey committed Feb 2, 2024
1 parent 9e74247 commit 7934203
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions pkgs/development/python-modules/flufl/lock.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
, atpublic, psutil, pytest-cov, sybil
, pdm-pep517
}:

buildPythonPackage rec {
pname = "flufl-lock";
version = "7.1.1";
format = "pyproject";
pyproject = true;

disabled = pythonOlder "3.7";

src = fetchPypi {
pname = "flufl.lock";
Expand All @@ -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;
};
}

0 comments on commit 7934203

Please sign in to comment.