Merge pull request #146686 from fabaff/bump-libversion

This commit is contained in:
Sandro 2021-11-20 00:27:31 +01:00 committed by GitHub
commit ccf61d154f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,23 +1,41 @@
{ lib, buildPythonPackage, fetchPypi, pkg-config, libversion, pythonOlder }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, libversion
, pkg-config
, pythonOlder
}:
buildPythonPackage rec {
pname = "libversion";
version = "1.2.3";
src = fetchPypi {
inherit pname version;
sha256 = "e6e903cc6307c3eda90401373eb81bfd0dd2dc93772ddab3d23705bed0c6f6e9";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libversion ];
version = "1.2.4";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "repology";
repo = "py-libversion";
rev = version;
sha256 = "sha256-p0wtSB+QXAERf+57MMb8cqWoy1bG3XaCpR9GPwYYvJM=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libversion
];
pythonImportsCheck = [
"libversion"
];
meta = with lib; {
homepage = "https://github.com/repology/py-libversion";
description = "Python bindings for libversion, which provides fast, powerful and correct generic version string comparison algorithm";
homepage = "https://github.com/repology/py-libversion";
license = licenses.mit;
maintainers = [ maintainers.ryantm ];
maintainers = with maintainers; [ ryantm ];
};
}