summary refs log tree commit diff
path: root/pkgs/development/python-modules/puremagic/default.nix
blob: 25c79a83c4377a4b3fc2e88cfd4792e9c7668ab5 (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
{ lib
, buildPythonPackage
, fetchPypi
}:

buildPythonPackage rec {
  pname = "puremagic";
  version = "1.11";

  src = fetchPypi {
    inherit pname version;
    sha256 = "09d762b9d83c65a83617ee57a3532eb10663f394c1caf81390516c5b1cc0fc6b";
  };

  # test data not included on pypi
  doCheck = false;

  pythonImportsCheck = [ "puremagic" ];

  meta = with lib; {
    description = "Pure python implementation of magic file detection";
    license = licenses.mit;
    homepage = "https://github.com/cdgriffith/puremagic";
    maintainers = with maintainers; [ globin ];
  };
}