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.dateparser: 0.3.2-pre-2016-01-21 -> 0.6.0 #32591

Merged
merged 2 commits into from Dec 12, 2017

Conversation

makefu
Copy link
Contributor

@makefu makefu commented Dec 12, 2017

Motivation for this change

unbreak pythonPackages.dateparser, bump to latest rev. This PR is part of the testing for https://github.com/makefu/nix-src-updater .

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)
  • [NA] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • [NA] Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

name = "dateparser-${version}";
version = "0.6.0";

src = fetchgit {
Copy link
Member

Choose a reason for hiding this comment

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

fetchFromGitHub

# Upstream Issue: https://github.com/scrapinghub/dateparser/issues/364
disabled = isPy3k;

buildInputs = [ nose nose-parameterized mock glibcLocales ];
Copy link
Member

Choose a reason for hiding this comment

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

test inputs go in checkInputs

sha256 = "0q2vyzvlj46r6pr0s6m1a0md1cpg9nv1n3xw286l4x2cc7fj2g3y";
};

LC_ALL = "en_US.UTF-8";
Copy link
Member

Choose a reason for hiding this comment

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

likely only needed for tests -> export in preCheck


meta = with stdenv.lib;{
description = "Date parsing library designed to parse dates from HTML pages";
homepage = https://pypi.python.org/pypi/dateparser;
Copy link
Member

Choose a reason for hiding this comment

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

@makefu
Copy link
Contributor Author

makefu commented Dec 12, 2017

This is what happens when you try to bump a version of some obscure python package 💃
I will fix this after lunch

@makefu
Copy link
Contributor Author

makefu commented Dec 12, 2017

Thanks for the review @FRidh 👍

, regex
, ruamel_yaml }:
buildPythonPackage rec {
name = "dateparser-${version}";
Copy link
Member

Choose a reason for hiding this comment

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

Just one more tiny change.

pname = "dateparser";
version = "0.6.0";

and drop name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, that works now! I remember that name was always necessary.

@FRidh FRidh merged commit de31058 into NixOS:master Dec 12, 2017
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

3 participants