Skip to content

Commit

Permalink
Fix nix
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrsamsung committed Apr 18, 2024
1 parent 75ad725 commit 8595215
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
run: |
echo "Building packge"
nix develop --command python -m build
nix develop --command make build
- name: Upload Release to PyPI
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
Expand Down
14 changes: 8 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
# package necessary for Spex to run
spexDeps = pkgs:
(with pkgs.python311Packages; [ lxml ])
++ (with self.packages.${pkgs.system}; [ lxml-stubs loguru gcgen types-jsonschema ]);
++ (with self.packages.${pkgs.system}; [ lxml-stubs loguru gcgen types-jsonschema flake8-pyproject ]);
in {
# used when calling `nix fmt <path/to/flake.nix>`
formatter = forAllSystems ({ pkgs }: pkgs.nixfmt);
Expand Down Expand Up @@ -112,21 +112,23 @@
});

flake8-pyproject = (buildPythonPackage rec {
pname = "flake8-pyproject";
pname = "Flake8-pyproject";
version = "1.2.3";
src = fetchPypi {
inherit pname version;
src = fetchFromGitHub {
owner = "john-hen";
repo = "Flake8-pyproject";
rev = "1.2.3";
sha256 = "";
};

format = "wheel";
dist = "py3";
# Package does not have any tests
doCheck = false;
propagatedBuildInputs = [];

meta = {
description = "Flake8 plug-in loading the configuration from pyproject.toml";
homepage = "https://github.com/john-hen/Flake8-pyproject";
license = pkgs.lib.licenses.mit;
};
});

Expand Down

0 comments on commit 8595215

Please sign in to comment.