Skip to content

Commit

Permalink
Use native{Check,Build}Inputs
Browse files Browse the repository at this point in the history
See NixOS/nixpkgs#206742 for details.
  • Loading branch information
thiagokokada committed Apr 7, 2023
1 parent eea4857 commit 58597a3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions nix-alien.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ python3.pkgs.buildPythonApplication {

src = ./.;

nativeBuildInputs = [ fzf ];

propagatedBuildInputs = with python3.pkgs; [
nix-index
setuptools
Expand All @@ -33,15 +35,15 @@ python3.pkgs.buildPythonApplication {

doCheck = !dev;

checkInputs = with python3.pkgs; [
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
] ++ lib.optionals ci [
black
mypy
pylint
];

preCheck = ''
export PATH="${lib.makeBinPath [ fzf ]}:$PATH"
''
+ lib.optionalString ci ''
export PATH="${with python3.pkgs; lib.makeBinPath [ black mypy pylint ]}:$PATH"
preCheck = lib.optionalString ci ''
export PYLINTHOME="$(mktemp -d)"
black --check ./nix_alien
mypy --ignore-missing-imports ./nix_alien
Expand Down

0 comments on commit 58597a3

Please sign in to comment.