python312Packages.fs: switch to pypa builder
- add changelog to meta
This commit is contained in:
committed by
Martin Weinelt
parent
7d6f31bf6f
commit
40791043c2
@@ -1,56 +1,50 @@
|
||||
{
|
||||
lib,
|
||||
glibcLocales,
|
||||
stdenv,
|
||||
appdirs,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
glibcLocales,
|
||||
mock,
|
||||
psutil,
|
||||
pyftpdlib,
|
||||
pytestCheckHook,
|
||||
pythonAtLeast,
|
||||
pythonOlder,
|
||||
pytz,
|
||||
setuptools,
|
||||
six,
|
||||
appdirs,
|
||||
scandir ? null,
|
||||
backports_os ? null,
|
||||
typing ? null,
|
||||
pytz,
|
||||
enum34,
|
||||
pyftpdlib,
|
||||
psutil,
|
||||
mock,
|
||||
pythonAtLeast,
|
||||
isPy3k,
|
||||
pytestCheckHook,
|
||||
stdenv,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fs";
|
||||
version = "2.4.16";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-rpfH1RIT9LcLapWCklMCiQkN46fhWEHhCPvhRPBp0xM=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
buildInputs = [ glibcLocales ];
|
||||
|
||||
# strong cycle with parameterized
|
||||
doCheck = false;
|
||||
dependencies = [
|
||||
six
|
||||
appdirs
|
||||
pytz
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pyftpdlib
|
||||
mock
|
||||
psutil
|
||||
pytestCheckHook
|
||||
];
|
||||
propagatedBuildInputs =
|
||||
[
|
||||
six
|
||||
appdirs
|
||||
pytz
|
||||
setuptools
|
||||
]
|
||||
++ lib.optionals (!isPy3k) [ backports_os ]
|
||||
++ lib.optionals (!pythonAtLeast "3.6") [ typing ]
|
||||
++ lib.optionals (!pythonAtLeast "3.5") [ scandir ]
|
||||
++ lib.optionals (!pythonAtLeast "3.5") [ enum34 ];
|
||||
|
||||
LC_ALL = "en_US.utf-8";
|
||||
|
||||
@@ -58,6 +52,9 @@ buildPythonPackage rec {
|
||||
HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
# strong cycle with parameterized
|
||||
doCheck = false;
|
||||
|
||||
pytestFlagsArray = [ "--ignore=tests/test_opener.py" ];
|
||||
|
||||
disabledTests =
|
||||
@@ -77,6 +74,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Filesystem abstraction";
|
||||
homepage = "https://github.com/PyFilesystem/pyfilesystem2";
|
||||
changelog = "https://github.com/PyFilesystem/pyfilesystem2/blob/v${version}/CHANGELOG.md";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ lovek323 ];
|
||||
platforms = platforms.unix;
|
||||
|
||||
Reference in New Issue
Block a user