Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchPypi, pkgconfig, libversion, pythonOlder }: 2 3buildPythonPackage rec { 4 pname = "libversion"; 5 version = "1.1.2"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "040adjp5xjr4vwz3x2mspkymlcmljvqvacr88aw0jijq1h6fm59c"; 10 }; 11 12 nativeBuildInputs = [ pkgconfig ]; 13 buildInputs = [ libversion ]; 14 15 disabled = pythonOlder "3.6"; 16 17 meta = with stdenv.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}