2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, pkg-config, libversion, pythonOlder }:
|
2018-05-27 17:14:00 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libversion";
|
2020-07-06 10:43:11 +01:00
|
|
|
version = "1.2.1";
|
2018-05-27 17:14:00 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-06 10:43:11 +01:00
|
|
|
sha256 = "1h8x9hglrqi03f461lhw3wwz23zs84dgw7hx4laxcmyrgvyzvcq1";
|
2018-05-27 17:14:00 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-05-27 17:14:00 +01:00
|
|
|
buildInputs = [ libversion ];
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/repology/py-libversion";
|
2018-05-27 17:14:00 +01:00
|
|
|
description = "Python bindings for libversion, which provides fast, powerful and correct generic version string comparison algorithm";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ryantm ];
|
|
|
|
};
|
|
|
|
}
|