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

Pyrseas: init at 0.8.0 #34225

Merged
merged 4 commits into from Jan 29, 2018
Merged

Pyrseas: init at 0.8.0 #34225

merged 4 commits into from Jan 29, 2018

Conversation

P-E-Meunier
Copy link
Contributor

Pyrseas is a declarative tool for managing PostgreSQL schemas.

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • 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 nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Pyrseas is a declarative tool for managing PostgreSQL schemas.
@@ -0,0 +1,43 @@
{ stdenv, python27Packages, fetchFromGitHub }:
Copy link
Member

Choose a reason for hiding this comment

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

Don't use python27Packages. If it works with both 2 and 3, then use pythonPackages. If it only works with 2, then python2Packages. We don't support < 2.7 anymore.

@@ -0,0 +1,43 @@
{ stdenv, python27Packages, fetchFromGitHub }:

let
Copy link
Member

Choose a reason for hiding this comment

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

how about using a with pythonPackages on the top? It would remove a lot of noise.


let
pgdbconn = python27Packages.buildPythonPackage rec {
name = "pgdbconn-${version}";
Copy link
Member

Choose a reason for hiding this comment

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

pname and version instead of name

rev = "26c1490e4f32e4b5b925e5b82014ad106ba5b057";
sha256 = "09r4idk5kmqi3yig7ip61r6js8blnmac5n4q32cdcbp1rcwzdn6z";
};
doCheck = false;
Copy link
Member

Choose a reason for hiding this comment

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

can you include a comment explaining why the tests are disabled

};
in

python27Packages.buildPythonPackage rec {
Copy link
Member

Choose a reason for hiding this comment

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

This is an application, so buildPythonApplication

in

python27Packages.buildPythonPackage rec {
name = "pyrseas-${version}";
Copy link
Member

Choose a reason for hiding this comment

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

pname and versioninstead ofname`

rev = "2e9be763e61168cf20d28bd69010dc5875bd7b97";
sha256 = "1h9vahplqh0rzqjsdq64qqar6hj1bpbc6nl1pqwwgca56385br8r";
};
doCheck = false;
Copy link
Member

Choose a reason for hiding this comment

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

comment with explanation

};
in

python2Packages.buildPythonPackage rec {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does not it work with python 3? Python 2.7 or higher is listed in the README.

@FRidh
Copy link
Member

FRidh commented Jan 29, 2018

@GrahamcOfBorg build pyrseas

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Success on x86_64-linux (full log)

Partial log (click to expand)

post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/hj7byq7fhnv4a38zsdi5zrn2xwddmp3c-pyrseas-0.8.0
strip is /nix/store/mdyy001q67hiks0g24ra53z7ckm4jfr4-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/hj7byq7fhnv4a38zsdi5zrn2xwddmp3c-pyrseas-0.8.0/lib  /nix/store/hj7byq7fhnv4a38zsdi5zrn2xwddmp3c-pyrseas-0.8.0/bin 
patching script interpreter paths in /nix/store/hj7byq7fhnv4a38zsdi5zrn2xwddmp3c-pyrseas-0.8.0
checking for references to /tmp/nix-build-pyrseas-0.8.0.drv-0 in /nix/store/hj7byq7fhnv4a38zsdi5zrn2xwddmp3c-pyrseas-0.8.0...
wrapping `/nix/store/hj7byq7fhnv4a38zsdi5zrn2xwddmp3c-pyrseas-0.8.0/bin/dbaugment'...
wrapping `/nix/store/hj7byq7fhnv4a38zsdi5zrn2xwddmp3c-pyrseas-0.8.0/bin/dbtoyaml'...
wrapping `/nix/store/hj7byq7fhnv4a38zsdi5zrn2xwddmp3c-pyrseas-0.8.0/bin/yamltodb'...
/nix/store/hj7byq7fhnv4a38zsdi5zrn2xwddmp3c-pyrseas-0.8.0

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Success on aarch64-linux (full log)

Partial log (click to expand)

post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/1y5agz75k2hrv6wligbmpdhfazfhpdkr-pyrseas-0.8.0
strip is /nix/store/jwz859pxqj7sl2dbwvmxkx68jp774izb-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/1y5agz75k2hrv6wligbmpdhfazfhpdkr-pyrseas-0.8.0/lib  /nix/store/1y5agz75k2hrv6wligbmpdhfazfhpdkr-pyrseas-0.8.0/bin
patching script interpreter paths in /nix/store/1y5agz75k2hrv6wligbmpdhfazfhpdkr-pyrseas-0.8.0
checking for references to /build in /nix/store/1y5agz75k2hrv6wligbmpdhfazfhpdkr-pyrseas-0.8.0...
wrapping `/nix/store/1y5agz75k2hrv6wligbmpdhfazfhpdkr-pyrseas-0.8.0/bin/dbaugment'...
wrapping `/nix/store/1y5agz75k2hrv6wligbmpdhfazfhpdkr-pyrseas-0.8.0/bin/yamltodb'...
wrapping `/nix/store/1y5agz75k2hrv6wligbmpdhfazfhpdkr-pyrseas-0.8.0/bin/dbtoyaml'...
/nix/store/1y5agz75k2hrv6wligbmpdhfazfhpdkr-pyrseas-0.8.0

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Success on x86_64-darwin (full log)

Partial log (click to expand)

Successfully installed Pyrseas-0.8.0
/private/tmp/nix-build-pyrseas-0.8.0.drv-0/source
post-installation fixup
strip is /nix/store/i1zz228nl3bljcbb83fq0rq7lr7nvv4y-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/bia63icr92q8m7bf6kqy2q2j3ydyjdkj-pyrseas-0.8.0/lib  /nix/store/bia63icr92q8m7bf6kqy2q2j3ydyjdkj-pyrseas-0.8.0/bin
patching script interpreter paths in /nix/store/bia63icr92q8m7bf6kqy2q2j3ydyjdkj-pyrseas-0.8.0
wrapping `/nix/store/bia63icr92q8m7bf6kqy2q2j3ydyjdkj-pyrseas-0.8.0/bin/dbaugment'...
wrapping `/nix/store/bia63icr92q8m7bf6kqy2q2j3ydyjdkj-pyrseas-0.8.0/bin/dbtoyaml'...
wrapping `/nix/store/bia63icr92q8m7bf6kqy2q2j3ydyjdkj-pyrseas-0.8.0/bin/yamltodb'...
/nix/store/bia63icr92q8m7bf6kqy2q2j3ydyjdkj-pyrseas-0.8.0

@FRidh FRidh merged commit 4b0000a into NixOS:master Jan 29, 2018
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.

None yet

4 participants