From 8afb9bc3684e9e379b1b55472c8d616d3cc01740 Mon Sep 17 00:00:00 2001 From: Ryan Sundberg Date: Mon, 10 May 2021 07:58:08 -0700 Subject: [PATCH 46/55] python-statsd: new package --- .../patches/python-statsd-requirements.patch | 11 ++++++++ gnu/packages/python-xyz.scm | 25 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 gnu/packages/patches/python-statsd-requirements.patch diff --git a/gnu/packages/patches/python-statsd-requirements.patch b/gnu/packages/patches/python-statsd-requirements.patch new file mode 100644 index 0000000000..f0cf869aa7 --- /dev/null +++ b/gnu/packages/patches/python-statsd-requirements.patch @@ -0,0 +1,11 @@ +diff --git a/requirements.txt b/requirements.txt +index 6aa9af6..9488982 100644 +--- a/requirements.txt ++++ b/requirements.txt +@@ -1,3 +1,3 @@ +-mock==1.0.1 +-nose==1.2.1 +-flake8==1.7.0 ++mock>=1.0.1 ++nose>=1.2.1 ++flake8>=1.7.0 diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6b0ab4a9f1..7e73a097f1 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -26174,3 +26174,28 @@ representing paths or filenames.") (description "A caching front-end based on the Dogpile lock.") (license license:expat))) + +(define-public python-statsd + (package + (name "python-statsd") + (version "3.3") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/jsocol/pystatsd.git") + (commit (string-append "v" version)))) + (sha256 + (base32 + "1i9mfpq8f9aciqzkkz4irgvz8vs9nwjcfhvrj6ak2cgqchszsiaf")) + (patches (search-patches "python-statsd-requirements.patch")))) + (build-system python-build-system) + (native-inputs + `(("python-flake8" ,python-flake8) + ("python-mock" ,python-mock) + ("python-nose" ,python-nose))) + (home-page "https://github.com/jsocol/pystatsd") + (synopsis "A simple statsd client.") + (description "A simple statsd client.") + (license license:expat))) -- 2.31.1