Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python38Packages.logica: init at 1.3.13 #121469

Closed
wants to merge 1 commit into from
Closed

python38Packages.logica: init at 1.3.13 #121469

wants to merge 1 commit into from

Conversation

marsam
Copy link
Contributor

@marsam marsam commented May 2, 2021

Motivation for this change

Add https://logica.dev/

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@r-rmcgibbo
Copy link

r-rmcgibbo commented May 2, 2021

Result of nixpkgs-review pr 121469 at 4d5a9089 run on x86_64-linux 1

2 packages built successfully:
  • python38Packages.logica
  • python39Packages.logica
1 suggestion:
  • warning: no-python-tests

    Test runner could not discover any test cases: ‘Ran 0 tests in 0.000s’
    Near pkgs/development/python-modules/logica/default.nix:21:0:

       |
    21 |     description = "A logic programming language that compiles to StandardSQL and runs on Google BigQuery";
       | ^
    

Result of nixpkgs-review pr 121469 at 4d5a9089 run on aarch64-linux 1

2 packages built successfully:
  • python38Packages.logica
  • python39Packages.logica
1 suggestion:
  • warning: no-python-tests

    Test runner could not discover any test cases: ‘Ran 0 tests in 0.000s’
    Near pkgs/development/python-modules/logica/default.nix:21:0:

       |
    21 |     description = "A logic programming language that compiles to StandardSQL and runs on Google BigQuery";
       | ^
    

Copy link
Member

@dotlambda dotlambda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is better suited for all-packages.nix and buildPythonApplication.

pkgs/development/python-modules/logica/default.nix Outdated Show resolved Hide resolved
@@ -29325,6 +29325,8 @@ in

leo3-bin = callPackage ../applications/science/logic/leo3/binary.nix {};

logica = python3.pkgs.callPackage ../applications/science/logic/logica {};
Copy link
Member

@dotlambda dotlambda May 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logica = python3.pkgs.callPackage ../applications/science/logic/logica {};
logica = callPackage ../applications/science/logic/logica { };

@@ -0,0 +1,33 @@
{ lib, buildPythonApplication, python, fetchPypi, isPy27 }:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{ lib, buildPythonApplication, python, fetchPypi, isPy27 }:
{ lib, python3 }:

Comment on lines +23 to +24
# PyPI tarball doesn't ship all the tests files, and upstream repository does
# not have a setup.py
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They must somehow create that setup.py. So we should be able to use fetchFromGitHub and do create it in preBuild.

@marsam marsam closed this Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants