about summary refs log tree commit diff
path: root/pkgs/development/python-modules/libversion/default.nix
blob: a492ea7806a0aabf0f1601a1497222639b72bee6 (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
38
39
40
41
{ lib
, buildPythonPackage
, fetchFromGitHub
, libversion
, pkg-config
, pythonOlder
}:

buildPythonPackage rec {
  pname = "libversion";
  version = "1.2.4";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "repology";
    repo = "py-libversion";
    rev = version;
    sha256 = "sha256-p0wtSB+QXAERf+57MMb8cqWoy1bG3XaCpR9GPwYYvJM=";
  };

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
    libversion
  ];

  pythonImportsCheck = [
    "libversion"
  ];

  meta = with lib; {
    description = "Python bindings for libversion, which provides fast, powerful and correct generic version string comparison algorithm";
    homepage = "https://github.com/repology/py-libversion";
    license = licenses.mit;
    maintainers = with maintainers; [ ryantm ];
  };
}