nixpkgs/pkgs/development/python-modules/fleep/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

36 lines
778 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
}:
buildPythonPackage {
pname = "fleep";
version = "1.0.1";
format = "setuptools";
# Pypi version does not have tests
src = fetchFromGitHub {
owner = "floyernick";
repo = "fleep-py";
rev = "994bc2c274482d80ab13d89d8f7343eb316d3e44";
hash = "sha256-TaU7njx98nxkhZawGMFqWj4g+yCtIX9aPWQHoamzfMY=";
};
patches = [ ./0001-Fixing-paths-on-tests.patch ];
checkPhase = ''
${python.interpreter} tests/maintest.py
${python.interpreter} tests/speedtest.py
'';
pythonImportsCheck = [ "fleep" ];
meta = {
description = "File format determination library";
homepage = "https://github.com/floyernick/fleep-py";
license = lib.licenses.mit;
maintainers = [ ];
};
}