nixpkgs/pkgs/development/python-modules/libversion/default.nix

42 lines
824 B
Nix
Raw Normal View History

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