1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, python
5}:
6
7buildPythonPackage rec {
8 pname = "fleep";
9 version = "1.0.1";
10
11 # Pypi version does not have tests
12 src = fetchFromGitHub {
13 owner = "floyernick";
14 repo = "fleep-py";
15 rev = "994bc2c274482d80ab13d89d8f7343eb316d3e44";
16 hash = "sha256-TaU7njx98nxkhZawGMFqWj4g+yCtIX9aPWQHoamzfMY=";
17 };
18
19 patches = [
20 ./0001-Fixing-paths-on-tests.patch
21 ];
22
23 checkPhase = ''
24 ${python.interpreter} tests/maintest.py
25 ${python.interpreter} tests/speedtest.py
26 '';
27
28 pythonImportsCheck = [ "fleep" ];
29
30 meta = with lib; {
31 description = "File format determination library";
32 homepage = "https://github.com/floyernick/fleep-py";
33 license = licenses.mit;
34 maintainers = with maintainers; [ wolfangaukang ];
35 };
36}