Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.2 kB view raw
1{ lib 2, asn1crypto 3, buildPythonPackage 4, fetchFromGitHub 5, importlib-metadata 6, pytest-mock 7, pytestCheckHook 8, pythonOlder 9, setuptools 10}: 11 12buildPythonPackage rec { 13 pname = "scramp"; 14 version = "1.4.4"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "tlocke"; 21 repo = "scramp"; 22 rev = version; 23 hash = "sha256-WOyv1fLSXG7p+WKs2QSwlsh8FSK/lxp6I1hPY0VIkKo="; 24 }; 25 26 nativeBuildInputs = [ 27 setuptools 28 ]; 29 30 propagatedBuildInputs = [ 31 asn1crypto 32 ] ++ lib.optionals (pythonOlder "3.8") [ 33 importlib-metadata 34 ]; 35 36 nativeCheckInputs = [ 37 pytest-mock 38 pytestCheckHook 39 ]; 40 41 postPatch = '' 42 # Upstream uses versioningit to set the version 43 sed -i '/^name =.*/a version = "${version}"' pyproject.toml 44 sed -i "/dynamic =/d" pyproject.toml 45 ''; 46 47 pythonImportsCheck = [ 48 "scramp" 49 ]; 50 51 disabledTests = [ 52 "test_readme" 53 ]; 54 55 meta = with lib; { 56 description = "Implementation of the SCRAM authentication protocol"; 57 homepage = "https://github.com/tlocke/scramp"; 58 license = licenses.mit; 59 maintainers = with maintainers; [ jonringer ]; 60 }; 61}