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

pythonPackages.rdflib-jsonld: init at 0.5.0 #95711

Merged
merged 2 commits into from Aug 19, 2020
Merged

pythonPackages.rdflib-jsonld: init at 0.5.0 #95711

merged 2 commits into from Aug 19, 2020

Conversation

koslambrou
Copy link
Contributor

Motivation for this change

added rdflib-jsonld python package

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.

pkgs/development/python-modules/rdflib-jsonld/default.nix Outdated Show resolved Hide resolved
, rdflib
}:
buildPythonPackage rec {
name = "rdflib-jsonld";
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
name = "rdflib-jsonld";
pname = "rdflib-jsonld";

url = "https://files.pythonhosted.org/packages/f5/17/45e137be0d93b70827fe5529c0400731344a978bc792193d7d9152e6dbe4/${name}-${version}.tar.gz";
sha256 = "4f7d55326405071c7bce9acf5484643bcb984eadb84a6503053367da207105ed";
};
doCheck = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

default

Suggested change
doCheck = true;

sha256 = "4f7d55326405071c7bce9acf5484643bcb984eadb84a6503053367da207105ed";
};
doCheck = true;
format = "setuptools";
Copy link
Contributor

Choose a reason for hiding this comment

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

default

Suggested change
format = "setuptools";

maintainers/maintainer-list.nix Show resolved Hide resolved
Comment on lines 10 to 13
src = fetchurl {
url = "https://files.pythonhosted.org/packages/f5/17/45e137be0d93b70827fe5529c0400731344a978bc792193d7d9152e6dbe4/${name}-${version}.tar.gz";
sha256 = "4f7d55326405071c7bce9acf5484643bcb984eadb84a6503053367da207105ed";
};
Copy link
Contributor

Choose a reason for hiding this comment

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

use fetchPypi

Suggested change
src = fetchurl {
url = "https://files.pythonhosted.org/packages/f5/17/45e137be0d93b70827fe5529c0400731344a978bc792193d7d9152e6dbe4/${name}-${version}.tar.gz";
sha256 = "4f7d55326405071c7bce9acf5484643bcb984eadb84a6503053367da207105ed";
};
src = fetchPypi {
inherit pname version;
sha256 = ...;
};

@jonringer
Copy link
Contributor

@koslambrou thanks for opening your first PR

please look at https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/rope/default.nix for an example of a python package which uses nose

@jonringer
Copy link
Contributor

i notcied you force pushed after closing the PR, did you mean to do that?

@koslambrou
Copy link
Contributor Author

koslambrou commented Aug 17, 2020

@jonringer Oups not at all. Just finished creating the 2 commits with all the suggestions in my branch.

@koslambrou koslambrou reopened this Aug 17, 2020
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.

commits LGTM
has tests 👍

https://github.com/NixOS/nixpkgs/pull/95711
3 packages built:
python27Packages.rdflib-jsonld python37Packages.rdflib-jsonld python38Packages.rdflib-jsonld

sorry, another review below. Very close

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.

otherwise LGTM

https://github.com/NixOS/nixpkgs/pull/95711
3 packages built:
python27Packages.rdflib-jsonld python37Packages.rdflib-jsonld python38Packages.rdflib-jsonld

@koslambrou
Copy link
Contributor Author

@jonringer I finished applying the changes. Thanks for the review :)

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.

diff LGTM
commits LGTM
has tests 👍

https://github.com/NixOS/nixpkgs/pull/95711
3 packages built:
python27Packages.rdflib-jsonld python37Packages.rdflib-jsonld python38Packages.rdflib-jsonld

@jonringer jonringer merged commit 5128254 into NixOS:master Aug 19, 2020
@koslambrou koslambrou deleted the add-rdflib-jsonld-package branch August 20, 2020 11:00
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

2 participants