Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / fleep / default.nix
blobae8522955ce5d1bea0c9153fd8710910e8b3a967
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , python
5 }:
7 buildPythonPackage rec {
8   pname = "fleep";
9   version = "1.0.1";
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   };
19   patches = [
20     ./0001-Fixing-paths-on-tests.patch
21   ];
23   checkPhase = ''
24     ${python.interpreter} tests/maintest.py
25     ${python.interpreter} tests/speedtest.py
26   '';
28   pythonImportsCheck = [ "fleep" ];
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   };