1{ stdenv, buildPythonPackage, fetchPypi, pkgconfig, libversion, pythonOlder }:
2
3buildPythonPackage rec {
4 pname = "libversion";
5 version = "1.2.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "1h8x9hglrqi03f461lhw3wwz23zs84dgw7hx4laxcmyrgvyzvcq1";
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}