at master 977 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 poetry-core, 8 9 # dependencies 10 packaging, 11 12 # tests 13 jax, 14 numpy, 15 pytest-cov-stub, 16 pytestCheckHook, 17}: 18 19buildPythonPackage rec { 20 pname = "pyvers"; 21 version = "0.1.0"; 22 pyproject = true; 23 24 src = fetchFromGitHub { 25 owner = "vmoens"; 26 repo = "pyvers"; 27 tag = "v${version}"; 28 hash = "sha256-BUUfb0vI1r/VV5aF9gmqnXGOIWQfBJ98MrcF/IH5CEs="; 29 }; 30 31 build-system = [ 32 poetry-core 33 ]; 34 35 dependencies = [ 36 packaging 37 ]; 38 39 pythonImportsCheck = [ "pyvers" ]; 40 41 nativeCheckInputs = [ 42 jax 43 numpy 44 pytest-cov-stub 45 pytestCheckHook 46 ]; 47 48 meta = { 49 description = "Python library for dynamic dispatch based on module versions and backends"; 50 homepage = "https://github.com/vmoens/pyvers"; 51 changelog = "https://github.com/vmoens/pyvers/blob/${src.rev}/CHANGELOG.md"; 52 license = lib.licenses.mit; 53 maintainers = with lib.maintainers; [ GaetanLepage ]; 54 }; 55}