forked from mirrors/nixpkgs
python3Packages.libversion: 1.2.3 -> 1.2.4
This commit is contained in:
parent
293e6f0ce5
commit
de18d83359
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 {
|
buildPythonPackage rec {
|
||||||
pname = "libversion";
|
pname = "libversion";
|
||||||
version = "1.2.3";
|
version = "1.2.4";
|
||||||
|
format = "setuptools";
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "e6e903cc6307c3eda90401373eb81bfd0dd2dc93772ddab3d23705bed0c6f6e9";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
|
||||||
buildInputs = [ libversion ];
|
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
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; {
|
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";
|
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;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.ryantm ];
|
maintainers = with maintainers; [ ryantm ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue