blob: 453cbd96cde6b739e60abf1e3717a99cec11ceb0 (
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
37
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "puremagic";
version = "1.20";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "cdgriffith";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-Iyf/Vf1uqdtHlaP9Petpp88aIGCGmHu//cH6bindL6c=";
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"puremagic"
];
meta = with lib; {
description = "Implementation of magic file detection";
homepage = "https://github.com/cdgriffith/puremagic";
changelog = "https://github.com/cdgriffith/puremagic/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ globin ];
};
}
|