about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/fleep/default.nix
blob: 04b607325136ea9f26a2a7408176e85d9508897f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, buildPythonPackage
, fetchFromGitHub
, python
}:

buildPythonPackage rec {
  pname = "fleep";
  version = "1.0.1";

  # Pypi version does not have tests
  src = fetchFromGitHub {
    owner = "floyernick";
    repo = "fleep-py";
    rev = "994bc2c274482d80ab13d89d8f7343eb316d3e44";
    sha256 = "sha256-TaU7njx98nxkhZawGMFqWj4g+yCtIX9aPWQHoamzfMY=";
  };

  patches = [
    ./0001-Fixing-paths-on-tests.patch
  ];

  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;
    maintainers = with maintainers; [ wolfangaukang ];
  };
}