1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 pytestCheckHook, 7 8 pythonOlder, 9 10 setuptools, 11 setuptools-scm, 12 wheel, 13 14 numpy, 15 16 typing-extensions, 17}: 18 19buildPythonPackage rec { 20 pname = "typing-validation"; 21 version = "1.2.11"; 22 pyproject = true; 23 24 disabled = pythonOlder "3.7"; 25 26 src = fetchFromGitHub { 27 owner = "hashberg-io"; 28 repo = "typing-validation"; 29 rev = "refs/tags/v${version}"; 30 hash = "sha256-0scXoAPkx/VBIbNRMtFoRRbmGpC2RzNRmQG4mRXSxrs="; 31 }; 32 33 build-system = [ 34 setuptools 35 setuptools-scm 36 wheel 37 ]; 38 39 dependencies = [ typing-extensions ]; 40 41 nativeCheckInputs = [ 42 pytestCheckHook 43 numpy 44 ]; 45 46 pythonImportsCheck = [ "typing_validation" ]; 47 48 meta = with lib; { 49 description = "A simple library for runtime type-checking"; 50 homepage = "https://github.com/hashberg-io/typing-validation"; 51 changelog = "https://github.com/hashberg-io/typing-validation/releases/tag/v${version}"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ vizid ]; 54 }; 55}