Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 62 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 construct, 7 typing-extensions, 8 arrow, 9 cloudpickle, 10 numpy, 11 pytestCheckHook, 12 ruamel-yaml, 13}: 14 15buildPythonPackage rec { 16 pname = "construct-typing"; 17 version = "0.6.2"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "timrid"; 22 repo = "construct-typing"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-zXpxu+VUcepEoAPLQnSlMCZkt8fDsMCLS0HBKhaYD20="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 pythonRelaxDeps = [ "construct" ]; 30 31 dependencies = [ 32 construct 33 typing-extensions 34 ]; 35 36 pythonImportsCheck = [ 37 "construct-stubs" 38 "construct_typed" 39 ]; 40 41 nativeCheckInputs = [ 42 arrow 43 cloudpickle 44 numpy 45 pytestCheckHook 46 ruamel-yaml 47 ]; 48 49 disabledTests = [ 50 # tests fail with construct>=2.10.70 51 "test_bitsinteger" 52 "test_bytesinteger" 53 ]; 54 55 meta = { 56 changelog = "https://github.com/timrid/construct-typing/releases/tag/v${version}"; 57 description = "Extension for the python package 'construct' that adds typing features"; 58 homepage = "https://github.com/timrid/construct-typing"; 59 license = lib.licenses.mit; 60 maintainers = with lib.maintainers; [ dotlambda ]; 61 }; 62}