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