1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5}:
6
7buildPythonPackage rec {
8 pname = "puremagic";
9 version = "1.14";
10 format = "setuptools";
11
12 disabled = pythonOlder "3.7";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "sha256-PV3ybMfsmuu/hCoJEVovqF3FnqZBT6VoVyxEd115bLw=";
17 };
18
19 # test data not included on pypi
20 doCheck = false;
21
22 pythonImportsCheck = [
23 "puremagic"
24 ];
25
26 meta = with lib; {
27 description = "Implementation of magic file detection";
28 homepage = "https://github.com/cdgriffith/puremagic";
29 license = licenses.mit;
30 maintainers = with maintainers; [ globin ];
31 };
32}