nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 56 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 colcon, 5 cargo, 6 fetchFromGitHub, 7 scspell, 8 setuptools, 9 pytestCheckHook, 10 rustfmt, 11 toml, 12 writableTmpDirAsHomeHook, 13}: 14buildPythonPackage rec { 15 pname = "colcon-cargo"; 16 version = "0.2.0"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "colcon"; 21 repo = "colcon-cargo"; 22 tag = version; 23 hash = "sha256-jhc5mN4jnLk2zLj01sBm63acrku/FIexnIWCQ6GKDKA="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ 29 colcon 30 toml 31 ]; 32 33 nativeCheckInputs = [ 34 cargo 35 pytestCheckHook 36 scspell 37 rustfmt 38 writableTmpDirAsHomeHook 39 ]; 40 41 disabledTestPaths = [ 42 # Skip the linter tests 43 "test/test_flake8.py" 44 ]; 45 46 pythonImportsCheck = [ 47 "colcon_cargo" 48 ]; 49 50 meta = { 51 description = "Extension for colcon-core to support Rust packages built with Cargo"; 52 homepage = "https://github.com/colcon/colcon-cargo"; 53 license = lib.licenses.asl20; 54 maintainers = with lib.maintainers; [ guelakais ]; 55 }; 56}