diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-03-02 15:02:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-02 15:02:59 +0100 |
commit | 64d1e023d232c30bcb4da8bbd843ed1df97ac0e5 (patch) | |
tree | c85bef6672b9878b9aef1555d5c4c7fa0fb09992 /pkgs/development/python-modules/fleep/default.nix | |
parent | c02944e17d0d8ea91c9dc8878dc93697f7098838 (diff) | |
parent | 20513dccbc16c2c0517da2c4a3fc6e61e88f9560 (diff) |
Merge pull request #147127 from WolfangAukang/opendrop
Diffstat (limited to 'pkgs/development/python-modules/fleep/default.nix')
-rw-r--r-- | pkgs/development/python-modules/fleep/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/fleep/default.nix b/pkgs/development/python-modules/fleep/default.nix new file mode 100644 index 0000000000000..04b607325136e --- /dev/null +++ b/pkgs/development/python-modules/fleep/default.nix @@ -0,0 +1,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 ]; + }; +} |