python3Packages.filelock: migrate to pyproject and setuptools-scm

This commit is contained in:
Martin Weinelt 2021-10-09 16:53:49 +02:00
parent c634cfdbe9
commit 877cca04d1

View file

@ -1,14 +1,30 @@
{ lib, buildPythonPackage, fetchPypi }:
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, setuptools-scm
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "filelock";
version = "3.3.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "8c7eab13dc442dc249e95158bcc12dec724465919bdc9831fdbf0660f03d1785";
};
nativeBuildInputs = [
setuptools-scm
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
homepage = "https://github.com/benediktschmitt/py-filelock";
description = "A platform independent file lock for Python";