nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 48 lines 924 B view raw
1{ 2 lib, 3 fetchPypi, 4 python3Packages, 5 versionCheckHook, 6}: 7 8python3Packages.buildPythonApplication rec { 9 pname = "bashate"; 10 version = "2.1.1"; 11 pyproject = true; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-S6tul3+DBacgU1+Pk/H7QsUh/LxKbCs9PXZx9C8iH0w="; 16 }; 17 18 build-system = with python3Packages; [ setuptools ]; 19 20 dependencies = with python3Packages; [ 21 babel 22 pbr 23 ]; 24 25 nativeCheckInputs = with python3Packages; [ 26 fixtures 27 mock 28 stestr 29 testtools 30 ]; 31 32 checkPhase = '' 33 runHook preCheck 34 stestr run 35 runHook postCheck 36 ''; 37 38 pythonImportsCheck = [ "bashate" ]; 39 40 meta = { 41 description = "Style enforcement for bash programs"; 42 mainProgram = "bashate"; 43 homepage = "https://opendev.org/openstack/bashate"; 44 license = with lib.licenses; [ asl20 ]; 45 maintainers = with lib.maintainers; [ fab ]; 46 teams = [ lib.teams.openstack ]; 47 }; 48}