nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 setuptools-scm,
7 six,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "pystardict";
13 version = "0.9";
14 format = "setuptools";
15
16 src = fetchFromGitHub {
17 owner = "lig";
18 repo = "pystardict";
19 tag = "v${version}";
20 hash = "sha256-VWOxggAKifN5f6nSN1xsSbg0hpKzrHDw+UqnAOzsXj0=";
21 };
22
23 propagatedBuildInputs = [ six ];
24
25 nativeBuildInputs = [
26 setuptools
27 setuptools-scm
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "pystardict" ];
33
34 meta = {
35 description = "Library for manipulating StarDict dictionaries from within Python";
36 homepage = "https://github.com/lig/pystardict";
37 license = lib.licenses.gpl3Plus;
38 maintainers = with lib.maintainers; [ thornycrackers ];
39 };
40}