Merge pull request #146686 from fabaff/bump-libversion
This commit is contained in:
commit
ccf61d154f
1 changed files with 30 additions and 12 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue