nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 64 lines 1.7 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pscript, 7 pytestCheckHook, 8 pythonAtLeast, 9}: 10 11buildPythonPackage rec { 12 pname = "vbuild"; 13 version = "0.8.2"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "manatlan"; 18 repo = "vbuild"; 19 tag = "v${version}"; 20 hash = "sha256-p9v1FiYn0cI+f/25hvjwm7eb1GqxXvNnmXBGwZe9fk0="; 21 }; 22 23 postPatch = '' 24 # Switch to poetry-core, patch can't be applied, https://github.com/manatlan/vbuild/pull/12 25 substituteInPlace pyproject.toml \ 26 --replace-fail 'version = "0.0.0"' 'version = "${version}"' \ 27 --replace-fail 'requires = ["poetry>=0.12"]' 'requires = ["poetry-core>=1.0.0"]' \ 28 --replace-fail 'build-backend = "poetry.masonry.api"' 'build-backend = "poetry.core.masonry.api"' 29 ''; 30 31 pythonRelaxDeps = [ "pscript" ]; 32 33 build-system = [ poetry-core ]; 34 35 dependencies = [ pscript ]; 36 37 nativeCheckInputs = [ pytestCheckHook ]; 38 39 pythonImportsCheck = [ "vbuild" ]; 40 41 disabledTests = [ 42 # Tests require network access 43 "test_min" 44 "test_pycomp_onlineClosurable" 45 ] 46 ++ lib.optionals (pythonAtLeast "3.13") [ 47 "test_ok" 48 ]; 49 50 disabledTestPaths = lib.optionals (pythonAtLeast "3.13") [ 51 # https://github.com/manatlan/vbuild/issues/13 52 "tests/test_py2js.py" 53 "tests/test_PyStdLibIncludeOrNot.py" 54 "test_py_comp.py" 55 ]; 56 57 meta = { 58 description = "Module to compile your VueJS components to standalone HTML/JS/CSS"; 59 homepage = "https://github.com/manatlan/vbuild"; 60 changelog = "https://github.com/manatlan/vbuild/blob/${src.rev}/changelog.md"; 61 license = lib.licenses.mit; 62 maintainers = with lib.maintainers; [ fab ]; 63 }; 64}