Files
nixpkgs/pkgs/development/python-modules/senf/default.nix
Martin Weinelt ae4a1a485a treewide: add explicit format attribute for Python packages
If a Python package does not come with either `format` or `pyproject` we
consider it a setuptools build, that calls `setup.py` directly, which is
deprecated.

This change, as a first step, migrates a large chunk of these packages to
set setuptools as their explicit format

This is so we can unify the problem space for the next step of the
migration.
2025-07-02 05:56:47 +02:00

47 lines
959 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
lib,
hypothesis,
pytestCheckHook,
unstableGitUpdater,
}:
buildPythonPackage {
pname = "senf";
version = "1.5.0-unstable-2024-11-26";
format = "setuptools";
src = fetchFromGitHub {
owner = "quodlibet";
repo = "senf";
rev = "b32bb8091f7b46679a23b3f9e9a9157eaa53be95";
hash = "sha256-JoFmQkjau8e8EXiJbWS7vnv1FarwerO4vGInosxlNEM=";
};
nativeCheckInputs = [
hypothesis
pytestCheckHook
];
disabledTests = [
# Both don't work even with HOME specified...
"test_getuserdir"
"test_expanduser_user"
];
passthru.updateScript = unstableGitUpdater {
tagPrefix = "v";
};
pythonImportsCheck = [ "senf" ];
meta = {
description = "Consistent filename handling for all Python versions and platforms";
homepage = "https://senf.readthedocs.io/en/latest/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ cab404 ];
};
}