all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add python-pyodbc-c.
@ 2017-01-26  0:26 Danny Milosavljevic
  2017-01-26 16:55 ` ng0
  0 siblings, 1 reply; 7+ messages in thread
From: Danny Milosavljevic @ 2017-01-26  0:26 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/databases.scm (python-pyodbc-c, python2-pyodbc-c):
  New variables.
---
 gnu/packages/databases.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index e8be17980..fc576888d 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -1312,3 +1312,29 @@ development.")
     ;; test/crypto.test are licensed under a 3-clause BSD license. All other
     ;; source files are in the public domain.
     (license (list license:public-domain license:bsd-3))))
+
+(define-public python-pyodbc-c
+  (package
+    (name "python-pyodbc-c")
+    (version "3.1.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://gitlab.com/daym/pyodbc-c/repository/"
+                           "archive.tar.gz?ref=v" version))
+       (sha256
+        (base32 "0nl11n3mgrcfnhimjqgv48rxqnb21l5m6s7p8ps2fa4nn4z6rzy0"))
+       (file-name (string-append name "-" version ".tar.gz"))))
+    (build-system python-build-system)
+    (inputs
+     `(("unixodbc" ,unixodbc)))
+    (arguments
+     `(#:tests? #f ; no tests exist
+      ))
+    (home-page "https://github.com/mkleehammer/pyodbc")
+    (synopsis "Python ODBC Library")
+    (description "This package provides a Python DB-API driver for ODBC.")
+    (license (license:x11-style "file://LICENSE.TXT"))))
+
+(define-public python2-pyodbc-c
+  (package-with-python2 python-pyodbc-c))

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] gnu: Add python-pyodbc-c.
  2017-01-26  0:26 [PATCH] gnu: Add python-pyodbc-c Danny Milosavljevic
@ 2017-01-26 16:55 ` ng0
  2017-01-26 18:14   ` Marius Bakke
  0 siblings, 1 reply; 7+ messages in thread
From: ng0 @ 2017-01-26 16:55 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix-devel

Danny Milosavljevic <dannym@scratchpost.org> writes:

> * gnu/packages/databases.scm (python-pyodbc-c, python2-pyodbc-c):
>   New variables.
> ---
>  gnu/packages/databases.scm | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>
> diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
> index e8be17980..fc576888d 100644
> --- a/gnu/packages/databases.scm
> +++ b/gnu/packages/databases.scm
> @@ -1312,3 +1312,29 @@ development.")
>      ;; test/crypto.test are licensed under a 3-clause BSD license. All other
>      ;; source files are in the public domain.
>      (license (list license:public-domain license:bsd-3))))
> +
> +(define-public python-pyodbc-c
> +  (package
> +    (name "python-pyodbc-c")
> +    (version "3.1.2")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append "https://gitlab.com/daym/pyodbc-c/repository/"
> +                           "archive.tar.gz?ref=v" version))
> +       (sha256
> +        (base32 "0nl11n3mgrcfnhimjqgv48rxqnb21l5m6s7p8ps2fa4nn4z6rzy0"))

I would put this as
(sha256
 (base32
  ""))
but I guess this works too as long as lint is happy.

> +       (file-name (string-append name "-" version ".tar.gz"))))
> +    (build-system python-build-system)
> +    (inputs
> +     `(("unixodbc" ,unixodbc)))
> +    (arguments
> +     `(#:tests? #f ; no tests exist
> +      ))
> +    (home-page "https://github.com/mkleehammer/pyodbc")

This is pulled from gitlab and the homepage is on gitlab? I think
it's better to use the gitlab repository as home-page then, or
what's the reason?

> +    (synopsis "Python ODBC Library")
> +    (description "This package provides a Python DB-API driver for ODBC.")

If I remember correctly, we should avoid starting synopsis and
description with words like "This". What about:

(description "@code{python-pyodbc-c} provides …"

> +    (license (license:x11-style "file://LICENSE.TXT"))))
> +
> +(define-public python2-pyodbc-c
> +  (package-with-python2 python-pyodbc-c))
>

Besides those small comments it looks good to me!
-- 
♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] gnu: Add python-pyodbc-c.
  2017-01-26 16:55 ` ng0
@ 2017-01-26 18:14   ` Marius Bakke
  2017-01-26 18:21     ` Danny Milosavljevic
  2017-01-26 18:27     ` [PATCH v2] " Danny Milosavljevic
  0 siblings, 2 replies; 7+ messages in thread
From: Marius Bakke @ 2017-01-26 18:14 UTC (permalink / raw)
  To: ng0, Danny Milosavljevic; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1181 bytes --]

ng0 <contact.ng0@cryptolab.net> writes:

> Danny Milosavljevic <dannym@scratchpost.org> writes:
>
>> * gnu/packages/databases.scm (python-pyodbc-c, python2-pyodbc-c):
>>   New variables.

[...]

>> +       (file-name (string-append name "-" version ".tar.gz"))))
>> +    (build-system python-build-system)
>> +    (inputs
>> +     `(("unixodbc" ,unixodbc)))
>> +    (arguments
>> +     `(#:tests? #f ; no tests exist
>> +      ))

Please move these to the previous line.

>> +    (home-page "https://github.com/mkleehammer/pyodbc")
>
> This is pulled from gitlab and the homepage is on gitlab? I think
> it's better to use the gitlab repository as home-page then, or
> what's the reason?

I think this is a better home page since it provides usage instructions:

https://mkleehammer.github.io/pyodbc/
>
>> +    (synopsis "Python ODBC Library")
>> +    (description "This package provides a Python DB-API driver for ODBC.")
>
> If I remember correctly, we should avoid starting synopsis and
> description with words like "This". What about:
>
> (description "@code{python-pyodbc-c} provides …"

Either of these two styles are fine IMO. LGTM!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] gnu: Add python-pyodbc-c.
  2017-01-26 18:14   ` Marius Bakke
@ 2017-01-26 18:21     ` Danny Milosavljevic
  2017-01-26 18:33       ` Marius Bakke
  2017-01-26 18:27     ` [PATCH v2] " Danny Milosavljevic
  1 sibling, 1 reply; 7+ messages in thread
From: Danny Milosavljevic @ 2017-01-26 18:21 UTC (permalink / raw)
  To: Marius Bakke; +Cc: guix-devel

Hi,

On Thu, 26 Jan 2017 19:14:41 +0100
Marius Bakke <mbakke@fastmail.com> wrote:

> >> +    (arguments
> >> +     `(#:tests? #f ; no tests exist
> >> +      ))  
> 
> Please move these to the previous line.

How? I'm not supposed to use block comment and the line comment doesn't end properly if I move the closing parens up to it.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2] gnu: Add python-pyodbc-c.
  2017-01-26 18:14   ` Marius Bakke
  2017-01-26 18:21     ` Danny Milosavljevic
@ 2017-01-26 18:27     ` Danny Milosavljevic
  2017-02-07 18:36       ` Kei Kebreau
  1 sibling, 1 reply; 7+ messages in thread
From: Danny Milosavljevic @ 2017-01-26 18:27 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/databases.scm (python-pyodbc-c, python2-pyodbc-c):
  New variables.
---
 gnu/packages/databases.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index e8be17980..232c46985 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -1312,3 +1312,31 @@ development.")
     ;; test/crypto.test are licensed under a 3-clause BSD license. All other
     ;; source files are in the public domain.
     (license (list license:public-domain license:bsd-3))))
+
+(define-public python-pyodbc-c
+  (package
+    (name "python-pyodbc-c")
+    (version "3.1.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://gitlab.com/daym/pyodbc-c/repository/"
+                           "archive.tar.gz?ref=v" version))
+       (sha256
+        (base32
+         "0nl11n3mgrcfnhimjqgv48rxqnb21l5m6s7p8ps2fa4nn4z6rzy0"))
+       (file-name (string-append name "-" version ".tar.gz"))))
+    (build-system python-build-system)
+    (inputs
+     `(("unixodbc" ,unixodbc)))
+    (arguments
+     `(;; No unit tests exist.
+       #:tests? #f))
+    (home-page "https://github.com/mkleehammer/pyodbc")
+    (synopsis "Python ODBC Library")
+    (description "@code{python-pyodbc-c} provides a Python DB-API driver
+for ODBC.")
+    (license (license:x11-style "file://LICENSE.TXT"))))
+
+(define-public python2-pyodbc-c
+  (package-with-python2 python-pyodbc-c))

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] gnu: Add python-pyodbc-c.
  2017-01-26 18:21     ` Danny Milosavljevic
@ 2017-01-26 18:33       ` Marius Bakke
  0 siblings, 0 replies; 7+ messages in thread
From: Marius Bakke @ 2017-01-26 18:33 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 538 bytes --]

Danny Milosavljevic <dannym@scratchpost.org> writes:

> Hi,
>
> On Thu, 26 Jan 2017 19:14:41 +0100
> Marius Bakke <mbakke@fastmail.com> wrote:
>
>> >> +    (arguments
>> >> +     `(#:tests? #f ; no tests exist
>> >> +      ))  
>> 
>> Please move these to the previous line.
>
> How? I'm not supposed to use block comment and the line comment
> doesn't end properly if I move the closing parens up to it.

...you can move the comment outside the parens? Or as a line above. Many
options that won't upset `guix lint` ;-)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] gnu: Add python-pyodbc-c.
  2017-01-26 18:27     ` [PATCH v2] " Danny Milosavljevic
@ 2017-02-07 18:36       ` Kei Kebreau
  0 siblings, 0 replies; 7+ messages in thread
From: Kei Kebreau @ 2017-02-07 18:36 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1700 bytes --]

Danny Milosavljevic <dannym@scratchpost.org> writes:

> * gnu/packages/databases.scm (python-pyodbc-c, python2-pyodbc-c):
>   New variables.
> ---
>  gnu/packages/databases.scm | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)
>
> diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
> index e8be17980..232c46985 100644
> --- a/gnu/packages/databases.scm
> +++ b/gnu/packages/databases.scm
> @@ -1312,3 +1312,31 @@ development.")
>      ;; test/crypto.test are licensed under a 3-clause BSD license. All other
>      ;; source files are in the public domain.
>      (license (list license:public-domain license:bsd-3))))
> +
> +(define-public python-pyodbc-c
> +  (package
> +    (name "python-pyodbc-c")
> +    (version "3.1.2")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append "https://gitlab.com/daym/pyodbc-c/repository/"
> +                           "archive.tar.gz?ref=v" version))
> +       (sha256
> +        (base32
> +         "0nl11n3mgrcfnhimjqgv48rxqnb21l5m6s7p8ps2fa4nn4z6rzy0"))
> +       (file-name (string-append name "-" version ".tar.gz"))))
> +    (build-system python-build-system)
> +    (inputs
> +     `(("unixodbc" ,unixodbc)))
> +    (arguments
> +     `(;; No unit tests exist.
> +       #:tests? #f))
> +    (home-page "https://github.com/mkleehammer/pyodbc")
> +    (synopsis "Python ODBC Library")
> +    (description "@code{python-pyodbc-c} provides a Python DB-API driver
> +for ODBC.")
> +    (license (license:x11-style "file://LICENSE.TXT"))))
> +
> +(define-public python2-pyodbc-c
> +  (package-with-python2 python-pyodbc-c))

LGTM. Pushed as 98d403bb4594c857729d64eaaafaf4a0ca51d7b3.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-02-08 14:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-26  0:26 [PATCH] gnu: Add python-pyodbc-c Danny Milosavljevic
2017-01-26 16:55 ` ng0
2017-01-26 18:14   ` Marius Bakke
2017-01-26 18:21     ` Danny Milosavljevic
2017-01-26 18:33       ` Marius Bakke
2017-01-26 18:27     ` [PATCH v2] " Danny Milosavljevic
2017-02-07 18:36       ` Kei Kebreau

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.