Files
nixpkgs/pkgs/development/python-modules/timy/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

31 lines
635 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
}:
buildPythonPackage {
pname = "timy";
version = "0.4.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "ramonsaraiva";
repo = "timy";
rev = "36a97e55f058de002a0da4f2a8e18c00d944821c";
hash = "sha256-4Opaph8Q1tQH+C/Epur8AA26RN4vO944DjCg0zDJqxM=";
};
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Minimalist measurement of python code time";
homepage = "https://github.com/ramonsaraiva/timy";
license = licenses.mit;
maintainers = with maintainers; [ flandweber ];
};
}