3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.libversion: 1.2.3 -> 1.2.4

This commit is contained in:
Fabian Affolter 2021-11-19 22:47:29 +01:00
parent 293e6f0ce5
commit de18d83359

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 ];
};
}