11 buildPythonPackage rec {
14 format = "setuptools";
16 disabled = pythonOlder "3.6";
18 src = fetchFromGitHub {
20 repo = "py-libversion";
22 hash = "sha256-p0wtSB+QXAERf+57MMb8cqWoy1bG3XaCpR9GPwYYvJM=";
26 substituteInPlace setup.py \
27 --replace "'pkg-config'" "'$(command -v $PKG_CONFIG)'"
30 nativeBuildInputs = [ pkg-config ];
32 buildInputs = [ libversion ];
34 nativeCheckInputs = [ pytestCheckHook ];
41 pythonImportsCheck = [ "libversion" ];
44 description = "Python bindings for libversion, which provides fast, powerful and correct generic version string comparison algorithm";
45 homepage = "https://github.com/repology/py-libversion";
46 license = licenses.mit;
47 maintainers = with maintainers; [ ryantm ];