1{ stdenv, buildPythonPackage, fetchPypi, pkgconfig, libversion, pythonOlder }:
2
3buildPythonPackage rec {
4 pname = "libversion";
5 version = "1.1.4";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "0xp0wv4s1537s0iqa1ih3kfh1p70s7d1fkwhvrnbj8m98yjij84q";
10 };
11
12 nativeBuildInputs = [ pkgconfig ];
13 buildInputs = [ libversion ];
14
15 disabled = pythonOlder "3.6";
16
17 meta = with stdenv.lib; {
18 homepage = https://github.com/repology/py-libversion;
19 description = "Python bindings for libversion, which provides fast, powerful and correct generic version string comparison algorithm";
20 license = licenses.mit;
21 maintainers = [ maintainers.ryantm ];
22 };
23}