nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 53 lines 1.0 kB view raw
1{ 2 lib, 3 asn1crypto, 4 buildPythonPackage, 5 fetchFromGitHub, 6 hatchling, 7 pytest-mock, 8 pytestCheckHook, 9 versioningit, 10}: 11 12buildPythonPackage rec { 13 pname = "scramp"; 14 version = "1.4.5"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "tlocke"; 19 repo = "scramp"; 20 rev = version; 21 hash = "sha256-KpododRJ+CYRGBR7Sr5cVBhJvUwh9YmPERd/DAJqEcY="; 22 }; 23 24 build-system = [ 25 hatchling 26 versioningit 27 ]; 28 29 dependencies = [ asn1crypto ]; 30 31 nativeCheckInputs = [ 32 pytest-mock 33 pytestCheckHook 34 ]; 35 36 postPatch = '' 37 # Upstream uses versioningit to set the version 38 sed -i "/versioningit >=/d" pyproject.toml 39 sed -i '/^name =.*/a version = "${version}"' pyproject.toml 40 sed -i "/dynamic =/d" pyproject.toml 41 ''; 42 43 pythonImportsCheck = [ "scramp" ]; 44 45 disabledTests = [ "test_readme" ]; 46 47 meta = { 48 description = "Implementation of the SCRAM authentication protocol"; 49 homepage = "https://github.com/tlocke/scramp"; 50 license = lib.licenses.mit; 51 maintainers = [ ]; 52 }; 53}