Skip to content

pythonPackages.python-openems: init at unstable-2020-02-15#99880

Merged
jonringer merged 1 commit intoNixOS:masterfrom
matthuszagh:python-openems
Oct 17, 2020
Merged

pythonPackages.python-openems: init at unstable-2020-02-15#99880
jonringer merged 1 commit intoNixOS:masterfrom
matthuszagh:python-openems

Conversation

@matthuszagh
Copy link
Contributor

@matthuszagh matthuszagh commented Oct 6, 2020

Motivation for this change

Adds python bindings for openems. Last piece of this PR. @jonringer.

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.

@ofborg ofborg bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Oct 6, 2020
Comment on lines 26 to 29
Copy link
Contributor

Choose a reason for hiding this comment

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

boost is usually linked against, and should go into buildInputs

Suggested change
nativeBuildInputs = [
cython
boost
];
nativeBuildInputs = [
cython
];
buildInputs = [
boost
];

Copy link
Contributor

Choose a reason for hiding this comment

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

although this is refering to the python package, not actually sure about this case

cc @FRidh

@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Oct 6, 2020
@lukego
Copy link
Contributor

lukego commented Oct 13, 2020

Just want to say thanks for doing this packaging work!

@matthuszagh
Copy link
Contributor Author

I'm glad it's useful!

@matthuszagh
Copy link
Contributor Author

@jonringer added imports check.

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

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

LGTM

Result of nixpkgs-review pr 99880 1

2 packages built:
  • python37Packages.python-openems
  • python38Packages.python-openems

@matthuszagh matthuszagh deleted the python-openems branch October 17, 2020 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants