Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 23 lines 684 B view raw
1{ lib, buildPythonPackage, fetchPypi, pkg-config, libversion, pythonOlder }: 2 3buildPythonPackage rec { 4 pname = "libversion"; 5 version = "1.2.3"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "e6e903cc6307c3eda90401373eb81bfd0dd2dc93772ddab3d23705bed0c6f6e9"; 10 }; 11 12 nativeBuildInputs = [ pkg-config ]; 13 buildInputs = [ libversion ]; 14 15 disabled = pythonOlder "3.6"; 16 17 meta = with lib; { 18 homepage = "https://github.com/repology/py-libversion"; 19 description = "Python bindings for libversion, which provides fast, powerful and correct generic version string comparison algorithm"; 20 license = licenses.mit; 21 maintainers = [ maintainers.ryantm ]; 22 }; 23}