1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, libversion
5, pkg-config
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "libversion";
11 version = "1.2.4";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "repology";
18 repo = "py-libversion";
19 rev = version;
20 sha256 = "sha256-p0wtSB+QXAERf+57MMb8cqWoy1bG3XaCpR9GPwYYvJM=";
21 };
22
23 nativeBuildInputs = [
24 pkg-config
25 ];
26
27 buildInputs = [
28 libversion
29 ];
30
31 pythonImportsCheck = [
32 "libversion"
33 ];
34
35 meta = with lib; {
36 description = "Python bindings for libversion, which provides fast, powerful and correct generic version string comparison algorithm";
37 homepage = "https://github.com/repology/py-libversion";
38 license = licenses.mit;
39 maintainers = with maintainers; [ ryantm ];
40 };
41}