2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python,
|
2022-03-05 16:20:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fleep";
|
|
|
|
version = "1.0.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
# Pypi version does not have tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "floyernick";
|
|
|
|
repo = "fleep-py";
|
|
|
|
rev = "994bc2c274482d80ab13d89d8f7343eb316d3e44";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-TaU7njx98nxkhZawGMFqWj4g+yCtIX9aPWQHoamzfMY=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
patches = [ ./0001-Fixing-paths-on-tests.patch ];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} tests/maintest.py
|
|
|
|
${python.interpreter} tests/speedtest.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "fleep" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "File format determination library";
|
|
|
|
homepage = "https://github.com/floyernick/fleep-py";
|
|
|
|
license = licenses.mit;
|
2024-06-24 18:47:55 +00:00
|
|
|
maintainers = [ ];
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
}
|